mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 17:22:53 +00:00
gui-init: remove double-prompt for checksum update
Not need to prompt the user twice for the same action Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
06656c4d29
commit
244de9de94
@ -47,7 +47,7 @@ verify_global_hashes()
|
||||
elif [ ! -f $TMP_HASH_FILE ]; then
|
||||
if (whiptail $CONFIG_ERROR_BG_COLOR --clear --title 'ERROR: Missing Hash File!' \
|
||||
--yesno "The file containing hashes for /boot is missing!\n\nIf you are setting this system up for the first time, select Yes to update\nyour list of checksums.\n\nOtherwise this could indicate a compromise and you should select No to\nreturn to the main menu.\n\nWould you like to update your checksums now?" 30 90) then
|
||||
prompt_update_checksums
|
||||
update_checksums
|
||||
fi
|
||||
return 1
|
||||
else
|
||||
@ -74,7 +74,7 @@ verify_global_hashes()
|
||||
fi
|
||||
|
||||
if (whiptail $CONFIG_ERROR_BG_COLOR --clear --title 'ERROR: Boot Hash Mismatch' --yesno "$TEXT" 30 90) then
|
||||
prompt_update_checksums
|
||||
update_checksums
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user