99base/dracut-lib.sh: fix previous getargs patch
authorHarald Hoyer <harald@redhat.com>
Wed, 20 Jul 2011 19:38:07 +0000 (21:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 Jul 2011 19:38:07 +0000 (21:38 +0200)
patch 9e7f4955895c1064e3bdd03f5f781efc9b98d5d6 ignored
"getargs key=value"

modules.d/99base/dracut-lib.sh

index c2202f1..6807b53 100755 (executable)
@@ -52,7 +52,7 @@ _dogetarg() {
     _getcmdline
 
     for _o in $CMDLINE; do
-        if [ "${_o%%=*}" = "${1%=}" ]; then
+        if [ "${_o%%=*}" = "${1%%=*}" ]; then
             if [ -n "${1#*=}" -a "${1#*=*}" != "${1}" ]; then
                 # if $1 has a "=<value>", we want the exact match
                 if [ "$_o" = "$1" ]; then