Skip to content

Commit e1d58a3

Browse files
functions: Use NOTE for GPG prompt clarification and resealing context
These messages don't indicate a problem, and they are not actionable. They aren't warnings. They _are_ important enough to clarify a confusing behavior that they should not be hidden with INFO messages, though. Use NOTE. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
1 parent 42940e4 commit e1d58a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

initrd/etc/functions

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ confirm_gpg_card() {
218218
echo "GPG User PIN retry attempts left before becoming locked: $user_pin_retries"
219219
echo "GPG Admin PIN retry attempts left before becoming locked: $admin_pin_retries"
220220
echo ""
221-
warn "Your GPG User PIN, followed by Enter key will be required for input at: 'Please unlock the card' next prompt"
221+
NOTE "Your GPG User PIN, followed by Enter key will be required for input at: 'Please unlock the card' next prompt"
222222
echo ""
223223
}
224224

@@ -621,17 +621,17 @@ reseal_tpm_disk_decryption_key() {
621621
fi
622622

623623
if [ -s /boot/kexec_key_devices.txt ] || [ -s /boot/kexec_key_lvm.txt ]; then
624-
warn "LUKS TPM sealed Disk Unlock Key secret needs to be resealed alongside TOTP/HOTP secret"
624+
NOTE "LUKS TPM sealed Disk Unlock Key secret needs to be resealed alongside TOTP/HOTP secret"
625625
echo "Resealing LUKS TPM Disk Unlock Key to be unsealed by LUKS TPM Disk Unlock Key passphrase"
626626
while ! kexec-seal-key /boot; do
627627
warn "Recovery Disk Encryption key passphrase/TPM Owner Password may be invalid. Please try again"
628628
done
629-
warn "LUKS header hash changed under /boot/kexec_luks_hdr_hash.txt"
629+
NOTE "LUKS header hash changed under /boot/kexec_luks_hdr_hash.txt"
630630
echo "Updating checksums and signing all files under /boot/kexec.sig"
631631
while ! update_checksums; do
632632
warn "Checksums were not signed. Preceding errors should explain possible causes"
633633
done
634-
warn "Rebooting in 3 seconds to enable booting default boot option"
634+
NOTE "Rebooting in 3 seconds to enable booting default boot option"
635635
sleep 3
636636
reboot
637637
else

0 commit comments

Comments
 (0)