From: Harald Hoyer Date: Thu, 10 Sep 2009 14:46:08 +0000 (+0200) Subject: init: fixed command line handling for /sbin/init and init= X-Git-Tag: 002~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=247c9f70bfd234bdd5c18e422e26301cb73dd509;p=thirdparty%2Fdracut.git init: fixed command line handling for /sbin/init and init= --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 1797bf896..bd901f2ef 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -230,14 +230,21 @@ for i in $(export -p); do done initargs="" -initrdargs="$initrdargs console BOOT_IMAGE rdbreak rdinitdebug rdudevinfo rdudevdebug rdnetdebug rdcopystate rdshell" -for x in "$@"; do - for s in $initrdargs; do - [ "${x%%=*}" = $s ] && continue 2 +if getarg init= >/dev/null ; then + ignoreargs="console BOOT_IMAGE" + # only pass arguments after init= to the init + read CLINE