Blame SOURCES/0135-Fix-bad-test-on-GRUB_DISABLE_SUBMENU.patch

6b3c76
From 4d363cc16d83a499ea1b14212e77e9e9c79d4984 Mon Sep 17 00:00:00 2001
a85e8e
From: Prarit Bhargava <prarit@redhat.com>
a85e8e
Date: Wed, 12 Mar 2014 10:58:16 -0400
6b3c76
Subject: [PATCH 135/261] Fix bad test on GRUB_DISABLE_SUBMENU.
a85e8e
a85e8e
The file /etc/grub.d/10_linux does
a85e8e
a85e8e
if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
a85e8e
a85e8e
when it should do
a85e8e
a85e8e
if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
a85e8e
a85e8e
which results in submenus in /boot/grub2/grub.cfg when
a85e8e
GRUB_DISABLE_SUBMENU="yes".
a85e8e
a85e8e
Resolves: rhbz#1063414
a85e8e
---
a85e8e
 util/grub.d/10_linux.in | 6 +++++-
a85e8e
 1 file changed, 5 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
6b3c76
index 136abd7a6..767093c63 100644
a85e8e
--- a/util/grub.d/10_linux.in
a85e8e
+++ b/util/grub.d/10_linux.in
a85e8e
@@ -255,7 +255,11 @@ while [ "x$list" != "x" ] ; do
a85e8e
     linux_root_device_thisversion=${GRUB_DEVICE}
a85e8e
   fi
a85e8e
 
a85e8e
-  if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
a85e8e
+  if [ "x${GRUB_DISABLE_SUBMENU}" = "xyes" ] || [ "x${GRUB_DISABLE_SUBMENU}" = "xy" ]; then
a85e8e
+    GRUB_DISABLE_SUBMENU="true"
a85e8e
+  fi
a85e8e
+
a85e8e
+  if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
a85e8e
     linux_entry "${OS}" "${version}" simple \
a85e8e
     "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
a85e8e
 
6b3c76
-- 
6b3c76
2.13.5
6b3c76