Blame SOURCES/0019-Always-do-the-rungrubby-debug-after-the-normal-kerne.patch

24fce8
From ae22f8322d2f2dccd19003fccd390fe19f7126c1 Mon Sep 17 00:00:00 2001
24fce8
From: Peter Jones <pjones@redhat.com>
24fce8
Date: Mon, 26 Oct 2015 14:22:39 -0400
24fce8
Subject: [PATCH 19/55] Always do the "rungrubby --debug" after the normal
24fce8
 kernel on install.
24fce8
24fce8
This way the during an update, the right kernel is picked as "default"
24fce8
for the command line arguments.
24fce8
24fce8
Related: rhbz#1212128
24fce8
24fce8
Signed-off-by: Peter Jones <pjones@redhat.com>
24fce8
---
24fce8
 new-kernel-pkg | 20 ++++++++++----------
24fce8
 1 file changed, 10 insertions(+), 10 deletions(-)
24fce8
24fce8
diff --git a/new-kernel-pkg b/new-kernel-pkg
24fce8
index 9f56c470b4a..9574dbbf10b 100755
24fce8
--- a/new-kernel-pkg
24fce8
+++ b/new-kernel-pkg
24fce8
@@ -243,8 +243,8 @@ install() {
24fce8
 		--args=\"root=$rootdevice $kernargs \$debugargs\" \
24fce8
 		--remove-kernel=\"TITLE=$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS} $makedefault
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grubConfig does not exist, not running grubby for grub 0.97"
24fce8
     fi
24fce8
@@ -257,8 +257,8 @@ install() {
24fce8
 		${mbargs:+--mbargs=\"$mbargs\"} \
24fce8
 		--args=\"root=$rootdevice $kernargs \$debugargs\" \
24fce8
 		--remove-kernel=\"TITLE=$title\$debugtitle\""
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS} $makedefault
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grub2Config does not exist, not running grubby for grub 2"
24fce8
     fi
24fce8
@@ -272,8 +272,8 @@ install() {
24fce8
 		${mbargs:+--mbargs=\"$mbargs\"} \
24fce8
 		--args=\"root=$rootdevice $kernargs \$debugargs\" \
24fce8
 		--remove-kernel=\"TITLE=$title\$debugtitle\""
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS} $makedefault
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grub2EfiConfig does not exist, not running grubby for grub 2 with UEFI"
24fce8
     fi
24fce8
@@ -288,8 +288,8 @@ install() {
24fce8
 		--args=\"root=$rootdevice $kernargs \$debugargs\" \
24fce8
 		--remove-kernel=\"TITLE=$version\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS} $makedefault
24fce8
+	rungrubby --debug ${ARGS}
24fce8
 	if [ -n "$runLilo" ]; then
24fce8
 	    [ -n "$verbose" ] && echo "running $lilo"
24fce8
 	    if [ ! -x $lilo ] ; then
24fce8
@@ -313,8 +313,8 @@ install() {
24fce8
 	    --args=\"root=$rootdevice $kernargs \$debugargs\" \
24fce8
 	    --remove-kernel=\"TITLE=$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS} $makedefault
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$extlinuxConfig does not exist, not running grubby for extlinux"
24fce8
     fi
24fce8
@@ -480,8 +480,8 @@ update() {
24fce8
 		${mbkernel:+--add-multiboot=\"$mbkernel\"} \
24fce8
 		--title=\"$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS}
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grubConfig does not exist, not running grubby"
24fce8
     fi
24fce8
@@ -493,8 +493,8 @@ update() {
24fce8
 		${removeargs:+--remove-args=\"$removeargs\"} \
24fce8
 		--title=\"$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS}
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grub2Config does not exist, not running grubby"
24fce8
     fi
24fce8
@@ -506,8 +506,8 @@ update() {
24fce8
 		${removeargs:+--remove-args=\"$removeargs\"} \
24fce8
 		--title=\"$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS}
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$grub2EfiConfig does not exist, not running grubby"
24fce8
     fi
24fce8
@@ -519,8 +519,8 @@ update() {
24fce8
 		${removeargs:+--remove-args=\"$removeargs\"} \
24fce8
 		--title=\"$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS}
24fce8
+	rungrubby --debug ${ARGS}
24fce8
 
24fce8
 	if [ -n "$runLilo" ]; then
24fce8
 	    [ -n "$verbose" ] && echo "running $lilo"
24fce8
@@ -571,8 +571,8 @@ update() {
24fce8
 		${removeargs:+--remove-args=\"$removeargs\"} \
24fce8
 		--title=\"$title\$debugtitle\""
24fce8
 
24fce8
-	rungrubby --debug ${ARGS}
24fce8
 	rungrubby ${ARGS}
24fce8
+	rungrubby --debug ${ARGS}
24fce8
     else
24fce8
 	[ -n "$verbose" ] && echo "$extlinuxConfig does not exist, not running grubby"
24fce8
     fi
24fce8
-- 
24fce8
2.17.1
24fce8