diff --git a/modules.d/99base/init b/modules.d/99base/init index e2c34c72..83085028 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -361,19 +361,18 @@ if getarg init= >/dev/null ; then ignoreargs="console BOOT_IMAGE" # only pass arguments after init= to the init CLINE=${CLINE#*init=} - set $CLINE - shift - for x in "$@"; do - for s in $ignoreargs; do - [ "${x%%=*}" = $s ] && continue 2 - done - initargs="$initargs $x" + set -- $CLINE + shift # clear out the rest of the "init=" arg + for x in "$@"; do + for s in $ignoreargs; do + [ "${x%%=*}" = $s ] && continue 2 done - unset CLINE + initargs="$initargs $x" + done + unset CLINE else set +x # Turn off debugging for this section - set $CLINE - shift + set -- $CLINE for x in "$@"; do case "$x" in [0-9]|s|S|single|emergency|auto ) \