summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-06-07 13:08:21 +0200
committerThomas Bächler <thomas@archlinux.org>2009-06-07 13:08:21 +0200
commit6d284f628b80ed6f21b3ceee31eb91c34f9b587b (patch)
tree52a98a6ea15de388316b2699f2726118bd5a57eb /init
parent0e6bd9d12ca52650892ffa1b33ed2267c98a72d9 (diff)
downloadmkinitcpio-6d284f628b80ed6f21b3ceee31eb91c34f9b587b.tar.gz
mkinitcpio-6d284f628b80ed6f21b3ceee31eb91c34f9b587b.tar.xz
Pass arguments to init properly
Diffstat (limited to 'init')
-rw-r--r--init7
1 files changed, 4 insertions, 3 deletions
diff --git a/init b/init
index 0a6aa3f..ad73b01 100644
--- a/init
+++ b/init
@@ -18,8 +18,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 :)
@@ -131,4 +132,4 @@ if [ -n "${udevpid}" ]; then
/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