File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797
9898attempts=0
9999while [ $attempts -lt 3 ]; do
100- read -s -p " New LUKS TPM Disk Unlock Key passphrase (DUK) for booting: " key_password
100+ read -s -p " New LUKS TPM Disk Unlock Key (DUK) passphrase for booting: " key_password
101101 echo
102102 read -s -p " Repeat LUKS TPM Disk Unlock Key (DUK) passphrase for booting: " key_password2
103103 echo
104104 if [ " $key_password " != " $key_password2 " ]; then
105105 attempts=$(( attempts + 1 ))
106106 if [ " $attempts " == " 3" ]; then
107- die " Disk Unlock Key passphrases do not match. Exiting..."
107+ die " Disk Unlock Key (DUK) passphrases do not match. Exiting..."
108108 else
109- warn " Disk Unlock Key passphrases do not match. Please try again."
109+ warn " Disk Unlock Key (DUK) passphrases do not match. Please try again."
110110 fi
111111 else
112112 break
@@ -168,7 +168,7 @@ for dev in $key_devices; do
168168 die " $dev : Unable to find a key slot that can be unlocked with provided passphrase. Exiting..."
169169 fi
170170
171- # If the key slot is not the expected DUK o FRK key slot, we will ask the user to confirm the wipe
171+ # If the key slot is not the expected DUK or DRK key slot, we will ask the user to confirm the wipe
172172 for keyslot in " ${luks_used_keyslots[@]} " ; do
173173 if [ " $keyslot " != " $drk_key_slot " ]; then
174174 # set wipe_desired to no by default
You can’t perform that action at this time.
0 commit comments