• Mimi Zohar's avatar
    selftests/kexec: update get_secureboot_mode · b433a52a
    Mimi Zohar authored
    The get_secureboot_mode() function unnecessarily requires both
    CONFIG_EFIVAR_FS and CONFIG_EFI_VARS to be enabled to determine if the
    system is booted in secure boot mode.  On some systems the old EFI
    variable support is not enabled or, possibly, even implemented.
    
    This patch first checks the efivars filesystem for the SecureBoot and
    SetupMode flags, but falls back to using the old EFI variable support.
    
    The "secure_boot_file" and "setup_mode_file" couldn't be quoted due to
    globbing.  This patch also removes the globbing.
    Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
    Reviewed-by: default avatarPetr Vorel <pvorel@suse.cz>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    b433a52a
kexec_common_lib.sh 5.27 KB