[PATCH] Disable grub2-mkconfig's submenus by default.

Peter Jones pjones at redhat.com
Thu Mar 14 13:09:23 UTC 2013


They are hideous and confusing and serve no useful purpose.  Make them
go away.

Signed-off-by: Peter Jones <pjones at redhat.com>
---
 pyanaconda/bootloader.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index a8ad105..bf2a921 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1439,6 +1439,7 @@ class GRUB2(GRUB):
         defaults.write("GRUB_TIMEOUT=%d\n" % self.timeout)
         defaults.write("GRUB_DISTRIBUTOR=\"$(sed 's, release .*$,,g' /etc/system-release)\"\n")
         defaults.write("GRUB_DEFAULT=saved\n")
+        defaults.write("GRUB_DISABLE_SUBMENU=true\n")
         if self.console and self.console.startswith("ttyS"):
             defaults.write("GRUB_TERMINAL=\"serial console\"\n")
             defaults.write("GRUB_SERIAL_COMMAND=\"%s\"\n" % self.serial_command)
-- 
1.8.1.4



More information about the anaconda-patches mailing list