mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 02:39:59 +00:00
gui-init, kexec-unseal-key: Move PCR debugging output to DEBUG calls
These were still writing some debugging output containing flags and PCRs even when debug was not enabled. Use DEBUG. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
698fc83046
commit
a0272270fe
@ -184,10 +184,10 @@ update_totp()
|
||||
return 1 # Already asked to skip to menu from a prior error
|
||||
fi
|
||||
|
||||
echo "DEBUG: CONFIG_TPM: $CONFIG_TPM"
|
||||
echo "DEBUG: CONFIG_TPM2_TOOLS: $CONFIG_TPM2_TOOLS"
|
||||
echo "DEBUG: Show PCRs"
|
||||
pcrs
|
||||
DEBUG "CONFIG_TPM: $CONFIG_TPM"
|
||||
DEBUG "CONFIG_TPM2_TOOLS: $CONFIG_TPM2_TOOLS"
|
||||
DEBUG "Show PCRs"
|
||||
DEBUG "$(pcrs)"
|
||||
|
||||
whiptail $BG_COLOR_ERROR --title "ERROR: TOTP Generation Failed!" \
|
||||
--menu " ERROR: Heads couldn't generate the TOTP code.\n
|
||||
|
@ -20,10 +20,10 @@ if [ -z "$key_file" ]; then
|
||||
key_file="/tmp/secret/secret.key"
|
||||
fi
|
||||
|
||||
echo "DEBUG: CONFIG_TPM: $CONFIG_TPM"
|
||||
echo "DEBUG: CONFIG_TPM2_TOOLS: $CONFIG_TPM2_TOOLS"
|
||||
echo "DEBUG: Show PCRs"
|
||||
pcrs
|
||||
DEBUG "CONFIG_TPM: $CONFIG_TPM"
|
||||
DEBUG "CONFIG_TPM2_TOOLS: $CONFIG_TPM2_TOOLS"
|
||||
DEBUG "Show PCRs"
|
||||
DEBUG "$(pcrs)"
|
||||
|
||||
for tries in 1 2 3; do
|
||||
read -s -p "Enter unlock password (blank to abort): " tpm_password
|
||||
|
Loading…
Reference in New Issue
Block a user