From 80c9d068b2f83c3e9cc03c98d65f18ef67810d6a Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Fri, 20 Mar 2009 02:58:58 -0500 Subject: [PATCH] Just pass args the kernel passed to us, not /proc/cmdline args. --- modules.d/99base/init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 || { -- 2.47.3