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

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