Skip to content

Commit

Permalink
Update luks-enable-tpm2-autounlock
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Nov 16, 2024
1 parent 5793834 commit 7300165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/ublue-os-luks/luks-enable-tpm2-autounlock
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [[ ! -L "$CRYPT_DISK" ]]; then
fi

if cryptsetup luksDump "$CRYPT_DISK" | grep systemd-tpm2 > /dev/null; then
KEYSLOT=$(cryptsetup luksDump "$CRYPT_DISK"|grep -A30 systemd-tpm2|grep Keyslot|awk '{print $2}')
KEYSLOT=$(cryptsetup luksDump /dev/disk/by-uuid/668391d5-617c-46e1-94f9-99be758d5d03 | sed -n '/systemd-tpm2$/,/Keyslot:/p' | grep Keyslot|awk '{print $2}')
echo "TPM2 already present in LUKS keyslot $KEYSLOT of $CRYPT_DISK."
read -p "Wipe it and re-enroll? (y/N): " -n 1 -r
echo
Expand Down

0 comments on commit 7300165

Please sign in to comment.