guix-patches
[Top][All Lists]
Advanced

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

[bug#38581] [PATCH 1/1] bootloader: grub: Add firmware setup entry


From: Brice Waegeneire
Subject: [bug#38581] [PATCH 1/1] bootloader: grub: Add firmware setup entry
Date: Thu, 12 Dec 2019 20:53:06 +0100

* gnu/bootloader/grub.scm (grub-configuration-file): Add 'Firmware
setup' entry for EFI platform.
---
 gnu/bootloader/grub.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index d984d5f5e3..700208f7a9 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -384,7 +384,13 @@ set timeout=~a~%"
 submenu \"GNU system, old configurations...\" {~%")
                     #$@(map menu-entry->gexp old-entries)
                     (format port "}~%"))
-                 #~()))))
+                 #~())
+          (format port "
+if [ \"${grub_platform}\" == efi ]; then
+  menuentry \"Firmware setup\" {
+    fwsetup
+  }
+fi"))))
 
   (computed-file "grub.cfg" builder))
 
-- 
2.19.2






reply via email to

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