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:
Sergii Dmytruk 2022-08-20 23:57:01 +03:00
parent b989889e5f
commit 75748e86b7
No known key found for this signature in database
GPG Key ID: 48579AA47429663E

View File

@ -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