From: Harald Hoyer Date: Wed, 20 Jul 2011 19:38:07 +0000 (+0200) Subject: 99base/dracut-lib.sh: fix previous getargs patch X-Git-Tag: 012~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1b678427e0a158487a2a3ef5a1be39f891a1cc3;p=thirdparty%2Fdracut.git 99base/dracut-lib.sh: fix previous getargs patch patch 9e7f4955895c1064e3bdd03f5f781efc9b98d5d6 ignored "getargs key=value" --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index c2202f127..6807b53fe 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -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 "=", we want the exact match if [ "$_o" = "$1" ]; then