From: Michael Prokop Date: Wed, 10 Mar 2021 13:58:41 +0000 (+0100) Subject: GRUB templates: provide menu entry for UEFI Firmware Settings X-Git-Tag: v0.38.0~2 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=8c0c9d9228f2ac667279c6384edf08af401ffe00 GRUB templates: provide menu entry for UEFI Firmware Settings When running in EFI mode, it's as simple as executing "fwsetup". Closes: https://github.com/grml/grml-live/issues/101 --- diff --git a/templates/boot/grub/addons.cfg b/templates/boot/grub/addons.cfg index 2425f7a..34ae54c 100644 --- a/templates/boot/grub/addons.cfg +++ b/templates/boot/grub/addons.cfg @@ -78,6 +78,12 @@ if [ "${grub_platform}" != "efi" ] ; then fi # efi mode } +if [ "${grub_platform}" == "efi" ] ; then +menuentry "UEFI Firmware Settings" { + fwsetup +} +fi # efi mode + menuentry "Boot from next device" { exit } diff --git a/templates/boot/grub/netboot.cfg b/templates/boot/grub/netboot.cfg index 919eec9..7e4bff4 100644 --- a/templates/boot/grub/netboot.cfg +++ b/templates/boot/grub/netboot.cfg @@ -21,6 +21,12 @@ menuentry "%GRML_NAME% Standard (%VERSION%, %ARCH%)" { initrd initrd.img } +if [ "${grub_platform}" == "efi" ] ; then +menuentry "UEFI Firmware Settings" { + fwsetup +} +fi # efi mode + menuentry "Boot from next device" { exit }