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

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