mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
gui-init: fix TOTP/HOTP initialization on missing OS
Skip only GPG key check, but always init TOTP and HOTP. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
parent
b989889e5f
commit
75748e86b7
@ -45,7 +45,7 @@ mount_boot()
|
||||
exec /bin/usb-init
|
||||
;;
|
||||
m )
|
||||
skip_to_menu="true"
|
||||
skip_gpg_check="true"
|
||||
break
|
||||
;;
|
||||
* )
|
||||
@ -571,7 +571,9 @@ else
|
||||
fi
|
||||
|
||||
# detect whether any GPG keys exist in the keyring, if not, initialize that first
|
||||
[[ "$skip_to_menu" != "true" ]] && check_gpg_key && update_totp && update_hotp
|
||||
[[ "$skip_gpg_check" != "true" ]] && check_gpg_key
|
||||
|
||||
update_totp && update_hotp
|
||||
|
||||
if [[ "$HOTP" = "Success" && $CONFIG_AUTO_BOOT_TIMEOUT ]]; then
|
||||
prompt_auto_default_boot
|
||||
|
Loading…
Reference in New Issue
Block a user