From 9d957af4bedde7b4bf897c82b6ad47d584cadce5 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 17 Jun 2009 13:58:44 +0200 Subject: [PATCH] 'correct init parsing' --- usr/share/archboot/base/init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/share/archboot/base/init b/usr/share/archboot/base/init index 964a1df70..9b77ed02c 100755 --- a/usr/share/archboot/base/init +++ b/usr/share/archboot/base/init @@ -20,8 +20,9 @@ echo "/sbin/modprobe" > /proc/sys/kernel/modprobe for cmd in ${CMDLINE}; do case "${cmd}" in \#*) break ;; # ignore everything after a # in the commandline - [0123456Ss]) export runlevel="${cmd}" ;; - single) export runlevel="S" ;; #some people use 'single' + # The kernel passes those to the kernel on its own + [0123456Ss]) ;; + single) ;; #Allow "init=X" to pass-through init=*) kinit_params="${kinit_params} ${cmd}" ;; # only export stuff that does work with dash :) @@ -132,5 +133,5 @@ else /bin/kill -9 ${udevpid} /bin/sleep 0.01 fi - exec /bin/kinit -- "root=${root}" ${kinit_params} "${runlevel}" > /dev/null 2>&1 + exec /bin/kinit "$@" -- "root=${root}" ${kinit_params} > /dev/null 2>&1 fi \ No newline at end of file