mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Merge pull request #682 from MrChromebox/clean_boot_detect_fix
gui-init: fix checking librem key card-status
This commit is contained in:
commit
e5c7f7397f
@ -118,8 +118,11 @@ clean_boot_check()
|
||||
[ $GPG_KEY_COUNT -ne 0 ] && return
|
||||
|
||||
# check for USB security token
|
||||
if ! gpg --card-status > /dev/null ; then
|
||||
return
|
||||
if [ "$CONFIG_LIBREMKEY" = "y" ]; then
|
||||
enable_usb
|
||||
if ! gpg --card-status > /dev/null ; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
# OS is installed, no kexec files present, no GPG keys in keyring, security token present
|
||||
|
Loading…
Reference in New Issue
Block a user