mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
efi: Don't display a uefi-firmware entry if it's not supported
Add a new --is-supported option to commands/efi/efifwsetup and conditionalize display on it. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
1e79bbfbda
commit
26031d3b10
2 files changed
+5
-1
No files matched your search
@@ -31,7 +31,8 @@ LABEL="UEFI Firmware Settings"
|
||||
gettext_printf "Adding boot menu entry for UEFI Firmware Settings ...\n" >&2
|
||||
|
||||
cat << EOF
|
||||
if [ "\$grub_platform" = "efi" ]; then
|
||||
fwsetup --is-supported
|
||||
if [ "\$grub_platform" = "efi" -a "\$?" = 0 ]; then
|
||||
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
|
||||
fwsetup
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user