grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

efi: add a command to read efi variables from shell and configuration fi


From: Ignat Korchagin
Subject: efi: add a command to read efi variables from shell and configuration files
Date: Tue, 15 Sep 2015 10:26:08 +0100

Would like to add a command for reading EFI variables from command line or config files to make following scenario possible in grub.cfg:

# check whether Secure Boot is enabled
get_efivar -t uint8 SecureBoot efi_secure_boot

if [ $efi_secure_boot = 1 ]; then
# secure boot is enabled, boot our secure OS
elif
# secure boot is disabled: enable it, boot insecure OS etc
fiĀ 



Attachment: grub2.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]