Blob Blame History Raw
From 9d37eca5d9ec131d9129d320d983bd02fbac4f02 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 11 Nov 2014 10:46:08 -0500
Subject: [PATCH 36/41] Don't put spaces in debug entries on zipl platforms.

Because of course zipl can't handle spaces.

Related: rhbz#1152152

Signed-off-by: Peter Jones <pjones@redhat.com>
---
 new-kernel-pkg | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/new-kernel-pkg b/new-kernel-pkg
index 527f8fb..f6369e4 100755
--- a/new-kernel-pkg
+++ b/new-kernel-pkg
@@ -140,7 +140,11 @@ rungrubby() {
 	if [ "$1" == "--debug" ]; then
 		[ "$MAKEDEBUG" != "yes" ] && return 0
 		[ -n "$verbose" ] && echo "- First, making a debug entry."
-		declare -x debugtitle=" with debugging"
+		if [ $ARCH = 's390' -o $ARCH = 's390x' ]; then
+			declare -x debugtitle="_with_debugging"
+		else
+			declare -x debugtitle=" with debugging"
+		fi
 		declare -x debugargs="$DEBUGARG"
 		shift
 	else
-- 
2.4.3