mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
Merge pull request #627 from MrChromebox/totp_error_prompt
gui-init: update TOTP error prompt
This commit is contained in:
commit
9576a427a0
@ -169,8 +169,14 @@ while true; do
|
|||||||
TOTP=`unseal-totp`
|
TOTP=`unseal-totp`
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
whiptail $CONFIG_ERROR_BG_COLOR --clear --title "ERROR: TOTP Generation Failed!" \
|
whiptail $CONFIG_ERROR_BG_COLOR --clear --title "ERROR: TOTP Generation Failed!" \
|
||||||
--menu "ERROR: Heads couldn't generate the TOTP code.\n\nIf this is the first time the system has booted, you should reset the TPM\nand set your own password\n\nIf you just reflashed your BIOS, you'll need to generate a new TOTP secret.\n\nIf you have not just reflashed your BIOS, THIS COULD INDICATE TAMPERING!\n\nHow would you like to proceed?" 30 90 4 \
|
--menu " ERROR: Heads couldn't generate the TOTP code.\n
|
||||||
'g' ' Generate new TOTP/HOTP secret' \
|
If you have just completed a Factory Reset, or just reflashed
|
||||||
|
your BIOS, you should generate a new HOTP/TOTP secret.\n
|
||||||
|
If this is the first time the system has booted, you should
|
||||||
|
reset the TPM and set your own password.\n
|
||||||
|
If you have not just reflashed your BIOS, THIS COULD INDICATE TAMPERING!\n
|
||||||
|
How would you like to proceed?" 30 90 4 \
|
||||||
|
'g' ' Generate new HOTP/TOTP secret' \
|
||||||
'i' ' Ignore error and continue to default boot menu' \
|
'i' ' Ignore error and continue to default boot menu' \
|
||||||
'p' ' Reset the TPM' \
|
'p' ' Reset the TPM' \
|
||||||
'x' ' Exit to recovery shell' \
|
'x' ' Exit to recovery shell' \
|
||||||
|
Loading…
Reference in New Issue
Block a user