GRUB templates: provide menu entry for UEFI Firmware Settings
authorMichael Prokop <mika@grml.org>
Wed, 10 Mar 2021 13:58:41 +0000 (14:58 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 10 Mar 2021 13:58:41 +0000 (14:58 +0100)
When running in EFI mode, it's as simple as executing "fwsetup".

Closes: https://github.com/grml/grml-live/issues/101

templates/boot/grub/addons.cfg
templates/boot/grub/netboot.cfg

index 2425f7a..34ae54c 100644 (file)
@@ -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
 }
index 919eec9..7e4bff4 100644 (file)
@@ -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
 }