Blame 0013-99base-dracut-lib.sh-fix-previous-getargs-patch.patch

Harald Hoyer f3160a
From b1b678427e0a158487a2a3ef5a1be39f891a1cc3 Mon Sep 17 00:00:00 2001
Harald Hoyer f3160a
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer f3160a
Date: Wed, 20 Jul 2011 21:38:07 +0200
Harald Hoyer f3160a
Subject: [PATCH] 99base/dracut-lib.sh: fix previous getargs patch
Harald Hoyer f3160a
Harald Hoyer f3160a
patch 9e7f4955895c1064e3bdd03f5f781efc9b98d5d6 ignored
Harald Hoyer f3160a
"getargs key=value"
Harald Hoyer f3160a
---
Harald Hoyer f3160a
 modules.d/99base/dracut-lib.sh |    2 +-
Harald Hoyer f3160a
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer f3160a
Harald Hoyer f3160a
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
Harald Hoyer f3160a
index c2202f1..6807b53 100755
Harald Hoyer f3160a
--- a/modules.d/99base/dracut-lib.sh
Harald Hoyer f3160a
+++ b/modules.d/99base/dracut-lib.sh
Harald Hoyer f3160a
@@ -52,7 +52,7 @@ _dogetarg() {
Harald Hoyer f3160a
     _getcmdline
Harald Hoyer f3160a
 
Harald Hoyer f3160a
     for _o in $CMDLINE; do
Harald Hoyer f3160a
-        if [ "${_o%%=*}" = "${1%=}" ]; then
Harald Hoyer f3160a
+        if [ "${_o%%=*}" = "${1%%=*}" ]; then
Harald Hoyer f3160a
             if [ -n "${1#*=}" -a "${1#*=*}" != "${1}" ]; then
Harald Hoyer f3160a
                 # if $1 has a "=<value>", we want the exact match
Harald Hoyer f3160a
                 if [ "$_o" = "$1" ]; then