Blame SOURCES/0004-Yaboot-allows-spaces-in-append-825041.patch

e8c52d
From 23fdf30de70d22ce737e66fbf63cc2365339dc1a Mon Sep 17 00:00:00 2001
e8c52d
From: IBM Bug Proxy <bugproxy@us.ibm.com>
e8c52d
Date: Fri, 25 May 2012 16:24:42 +0430
e8c52d
Subject: [PATCH 04/18] Yaboot allows spaces in append (#825041)
e8c52d
e8c52d
Yaboot configuration files may contain append statements with a space
e8c52d
before and after the assignment operator. Update os-prober to be able to
e8c52d
parse these files successfully.
e8c52d
e8c52d
Resolves: rhbz#825041
e8c52d
---
e8c52d
 linux-boot-probes/mounted/powerpc/40yaboot | 4 ++--
e8c52d
 1 file changed, 2 insertions(+), 2 deletions(-)
e8c52d
e8c52d
diff --git a/linux-boot-probes/mounted/powerpc/40yaboot b/linux-boot-probes/mounted/powerpc/40yaboot
e8c52d
index 26d8a16..cbb87da 100755
e8c52d
--- a/linux-boot-probes/mounted/powerpc/40yaboot
e8c52d
+++ b/linux-boot-probes/mounted/powerpc/40yaboot
e8c52d
@@ -74,8 +74,8 @@ parse_yaboot_conf () {
e8c52d
 				kernel="$(dequote "$2")"
e8c52d
 			;;
e8c52d
 			append)
e8c52d
-				shift 1
e8c52d
-				parameters="$(dequote "${line#append=}")"
e8c52d
+				cleanappend=`printf %s "$line" | sed -E 's/append(\s)*=(\s)*//'`
e8c52d
+				parameters="$(dequote "$cleanappend")"
e8c52d
 			;;
e8c52d
 			initrd)
e8c52d
 				initrd="$(dequote "$2")"
e8c52d
-- 
e8c52d
2.5.5
e8c52d