Skip to content

Commit 395de88

Browse files
authored
Merge pull request #1267 from tlaurion/better_totp_correction_guidelines_in_code
2 parents a772259 + d3eb708 commit 395de88

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

initrd/bin/gui-init

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,14 @@ show_tpm_totp_hotp_options_menu()
472472
prompt_totp_mismatch()
473473
{
474474
if (whiptail $BG_COLOR_WARNING --title "TOTP/HOTP code mismatched" \
475-
--yesno "TOTP/HOTP code mismatches could indicate either TPM tampering or clock drift:\n\nTo correct clock drift: 'date -s HH:MM:SS'\nand save it to the RTC: 'hwclock -w'\nthen reboot and try again.\n\nWould you like to exit to a recovery console?" 0 80) then
475+
--yesno "TOTP/HOTP code mismatches could indicate either TPM tampering or clock drift:\n\nTo correct clock drift: 'date -s yyyy-MM-DD hh:mm:ss' in UTC timezone\nand save it to the RTC: 'hwclock -w'\nthen reboot and try again.\n\nWould you like to exit to a recovery console?" 0 80) then
476476
echo ""
477-
echo "To correct clock drift: 'date -s HH:MM:SS'"
477+
echo "To correct clock drift: 'date -s yyyy-MM-DD hh:mm:ss' in UTC timezone"
478478
echo "and save it to the RTC: 'hwclock -w'"
479-
echo "then reboot and try again"
479+
echo ""
480+
echo "Alternatively you could do this automatically with an Ethernet cable connected to a functional network: 'network-init-recovery'"
481+
echo ""
482+
echo "Then reboot and try again"
480483
echo ""
481484
recovery "TOTP/HOTP mismatch"
482485
fi

0 commit comments

Comments
 (0)