Blame SOURCES/0075-Fix-setDefaultImage-for-s390-s390x-1285601.patch

16aa69
From 6a55388a609d0c9f237a651a356df77d165b3e83 Mon Sep 17 00:00:00 2001
16aa69
From: Robert Marshall <rmarshall@redhat.com>
16aa69
Date: Tue, 14 Mar 2017 22:25:02 -0400
16aa69
Subject: [PATCH 75/75] Fix setDefaultImage for s390/s390x (#1285601)
16aa69
16aa69
The setDefaultImage routine has never actually supported s390/s390x when
16aa69
picking an arbitrary index because a zipl config never has the property
16aa69
defaultIsIndex set to 1. Eliminating the extraneous check resolved the
16aa69
issue on s390/s390x and does not appear to break other platforms.
16aa69
16aa69
Related: rhbz#1285601
16aa69
---
16aa69
 grubby.c | 3 +--
16aa69
 1 file changed, 1 insertion(+), 2 deletions(-)
16aa69
16aa69
diff --git a/grubby.c b/grubby.c
16aa69
index f960ebd..7219d64 100644
16aa69
--- a/grubby.c
16aa69
+++ b/grubby.c
16aa69
@@ -2633,8 +2633,7 @@ void setDefaultImage(struct grubConfig *config, int isAddingBootEntry,
16aa69
 	}
16aa69
 
16aa69
 	/* Case 2: user picked an arbitrary index as the default boot entry */
16aa69
-	if (newDefaultBootEntryIndex >= FIRST_ENTRY_INDEX
16aa69
-	    && config->cfi->defaultIsIndex) {
16aa69
+	if (newDefaultBootEntryIndex >= FIRST_ENTRY_INDEX) {
16aa69
 		indexToVerify = newDefaultBootEntryIndex;
16aa69
 
16aa69
 		/* user chose to make latest boot entry the default */
16aa69
-- 
16aa69
2.9.3
16aa69