Blame SOURCES/0076-grubby-Make-sure-configure-BOOTLOADER-variables-are-.patch

903092
From 5a1f21830cb727b7b8d5b2428a0992bec726c330 Mon Sep 17 00:00:00 2001
903092
From: Peter Jones <pjones@redhat.com>
903092
Date: Wed, 31 Jan 2018 13:06:48 -0500
903092
Subject: [PATCH] grubby: Make sure configure$BOOTLOADER variables are set
903092
 correctly.
903092
903092
When we've chosen a bootloader because it's default for a platform, and
903092
we've already determined it's not overridden by the command line, set
903092
the configure$BOOTLOADER variable to 1 so that our checks for which
903092
bootloader are selected work correctly.
903092
903092
Resolves: rhbz#1340893
903092
903092
Signed-off-by: Peter Jones <pjones@redhat.com>
903092
---
903092
 grubby.c | 17 +++++++++++------
903092
 1 file changed, 11 insertions(+), 6 deletions(-)
903092
903092
diff --git a/grubby.c b/grubby.c
903092
index 9af04de..c1b4104 100644
903092
--- a/grubby.c
903092
+++ b/grubby.c
903092
@@ -5151,22 +5151,27 @@ int main(int argc, const char **argv)
903092
 	if (!cfi) {
903092
 		if (grub2FindConfig(&grub2ConfigType)) {
903092
 			cfi = &grub2ConfigType;
903092
+			configureGrub2 = 1;
903092
 			if (envPath)
903092
 				cfi->envFile = envPath;
903092
-		} else
903092
+		} else {
903092
 #ifdef __ia64__
903092
 			cfi = &eliloConfigType;
903092
-#elif __powerpc__
903092
+			configureLilo = 1;
903092
+#elif defined(__powerpc__)
903092
 			cfi = &yabootConfigType;
903092
-#elif __sparc__
903092
+			configureYaboot = 1;
903092
+#elif defined(__sparc__)
903092
 			cfi = &siloConfigType;
903092
-#elif __s390__
903092
+			configureSilo = 1;
903092
+#elif defined(__s390__) || defined(__s390x__)
903092
 			cfi = &ziplConfigType;
903092
-#elif __s390x__
903092
-			cfi = &ziplConfigtype;
903092
+			configureZipl = 1;
903092
 #else
903092
 			cfi = &grubConfigType;
903092
+			configureGrub = 1;
903092
 #endif
903092
+		}
903092
 	}
903092
 
903092
 	if (!grubConfig) {
903092
-- 
903092
2.14.3
903092