2018-04-11 18:42:03 +00:00
|
|
|
From 6cd959a64f588e256f0ba17e31bf2720b9cdec88 Mon Sep 17 00:00:00 2001
|
2014-07-02 15:49:28 +00:00
|
|
|
From: Prarit Bhargava <prarit@redhat.com>
|
|
|
|
Date: Wed, 12 Mar 2014 10:58:16 -0400
|
2018-05-10 15:48:20 +00:00
|
|
|
Subject: [PATCH 078/238] Fix bad test on GRUB_DISABLE_SUBMENU.
|
2014-07-02 15:49:28 +00:00
|
|
|
|
|
|
|
The file /etc/grub.d/10_linux does
|
|
|
|
|
|
|
|
if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
|
|
|
|
|
|
|
|
when it should do
|
|
|
|
|
|
|
|
if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
|
|
|
|
|
|
|
|
which results in submenus in /boot/grub2/grub.cfg when
|
|
|
|
GRUB_DISABLE_SUBMENU="yes".
|
|
|
|
|
|
|
|
Resolves: rhbz#1063414
|
|
|
|
---
|
2016-03-04 18:32:29 +00:00
|
|
|
util/grub.d/10_linux.in | 6 +++++-
|
|
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
2014-07-02 15:49:28 +00:00
|
|
|
|
|
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
2018-02-27 18:56:41 +00:00
|
|
|
index de9044c7f28..cf6331f2a51 100644
|
2014-07-02 15:49:28 +00:00
|
|
|
--- a/util/grub.d/10_linux.in
|
|
|
|
+++ b/util/grub.d/10_linux.in
|
2016-03-04 19:24:31 +00:00
|
|
|
@@ -224,7 +224,11 @@ while [ "x$list" != "x" ] ; do
|
2014-07-02 15:49:28 +00:00
|
|
|
linux_root_device_thisversion=${GRUB_DEVICE}
|
|
|
|
fi
|
|
|
|
|
|
|
|
- if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
|
2016-03-04 18:32:29 +00:00
|
|
|
+ if [ "x${GRUB_DISABLE_SUBMENU}" = "xyes" ] || [ "x${GRUB_DISABLE_SUBMENU}" = "xy" ]; then
|
|
|
|
+ GRUB_DISABLE_SUBMENU="true"
|
|
|
|
+ fi
|
|
|
|
+
|
2014-07-02 15:49:28 +00:00
|
|
|
+ if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
|
|
|
|
linux_entry "${OS}" "${version}" simple \
|
|
|
|
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
|
|
|
|
|
|
--
|
2018-05-10 15:48:20 +00:00
|
|
|
2.17.0
|
2014-07-02 15:49:28 +00:00
|
|
|
|