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

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