summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-01-04 02:54:17 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-01-04 02:54:17 +0100
commit41faecce468a243f1b0835cacdb373c8b4515204 (patch)
tree8c68ef23772ce7c9a81aeec5e8e0602c1b92e6bb /init
parenta28f2d55fe18e3ec6977a5f1d36820a07109a464 (diff)
downloadmkinitcpio-41faecce468a243f1b0835cacdb373c8b4515204.tar.gz
mkinitcpio-41faecce468a243f1b0835cacdb373c8b4515204.tar.xz
Allow init=??? syntax again
Using an explicit set of params passed to kinit is annoying, because we forget things like this. Add init=??? syntax again, for i.e. init=/bin/bash to recover a root password Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'init')
-rw-r--r--init2
1 files changed, 2 insertions, 0 deletions
diff --git a/init b/init
index 3511286..b8ee065 100644
--- a/init
+++ b/init
@@ -21,6 +21,8 @@ for cmd in $CMDLINE; do
\#*) break ;; # ignore everything after a # in the commandline
[0123456Ss]) export runlevel="$cmd" ;;
single) export runlevel="S" ;; #some people use 'single'
+ #Allow "init=X" to pass-through
+ init=*) kinit_params="${kinit_params} ${cmd}" ;;
# replace can cause problems for the following entries
# These should only be applied to the lefthand side of the expression
# until we find a fix hardcode the stuff here.