]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Just pass args the kernel passed to us, not /proc/cmdline args.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 20 Mar 2009 07:58:58 +0000 (02:58 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 20 Mar 2009 08:08:40 +0000 (03:08 -0500)
modules.d/99base/init

index ca6121e58b0e2ccea7a41486ceeebacdefd77c00..2cf2f148ee155129d4de786e8e5f1b88b0df67fc 100755 (executable)
@@ -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 || {