From: Victor Lowther Date: Fri, 20 Mar 2009 07:58:58 +0000 (-0500) Subject: Just pass args the kernel passed to us, not /proc/cmdline args. X-Git-Tag: 0.1~282^2~12^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80c9d068b2f83c3e9cc03c98d65f18ef67810d6a;p=thirdparty%2Fdracut.git Just pass args the kernel passed to us, not /proc/cmdline args. --- diff --git a/modules.d/99base/init b/modules.d/99base/init index ca6121e58..2cf2f148e 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -94,8 +94,10 @@ done getarg break && emergency_shell kill $(pidof udevd) initargs="" -for x in $CMDLINE; do - [ "${x%%=*}" = "console" -o "${x%%=*}" = "BOOT_IMAGE" ] && continue +for x in "$@"; do + [ "${x%%=*}" = "console" ] && continue + [ "${x%%=*}" = "BOOT_IMAGE" ] && continue + [ "${x%%=*}" = "break" ] && continue initargs="$initargs $x" done exec switch_root "$NEWROOT" "$INIT" $initargs || {