tmp2-unlock - make it work for all systems (#2228)

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-02-09 11:55:23 +01:00 committed by GitHub
parent e46a4414eb
commit caec1349a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ apt-get install clevis-tpm2 clevis-luks clevis-initramfs -y
# Execute the script
print_text_in_color "$ICyan" "Setting up automatic unlocking via TPM2..."
if ! echo "$PASSWORD" | clevis luks bind -k - -d "/dev/${ENCRYPTED_DEVICE[*]}" tpm2 '{"pcr_ids":"7"}'
if ! echo "$PASSWORD" | clevis luks bind -k - -d "/dev/${ENCRYPTED_DEVICE[*]}" tpm2 '{"pcr_bank":"sha256","pcr_ids":"7"}'
then
msg_box "Something has failed while trying to configure clevis luks.
We will now uninstall all needed packets again, so that you are able to start over."