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

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