You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
281 B
9 lines
281 B
#!/bin/sh
|
|
set -e
|
|
echo "Unlocking via TPM" >&2
|
|
export TPM2TOOLS_TCTI="device:/dev/tpm0"
|
|
/usr/bin/tpm2_unseal -c 0x81000000 -L sha256:0,1,4,5,7
|
|
if [ $? -eq 0 ]; then
|
|
exit
|
|
fi
|
|
/lib/cryptsetup/askpass "Unlocking the disk fallback $CRYPTTAB_SOURCE ($CRYPTTAB_NAME)\nEnter passphrase: "
|
|
|