diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-01-04 02:54:17 +0100 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-01-04 02:54:17 +0100 |
commit | 41faecce468a243f1b0835cacdb373c8b4515204 (patch) | |
tree | 8c68ef23772ce7c9a81aeec5e8e0602c1b92e6bb /mkinitcpio | |
parent | a28f2d55fe18e3ec6977a5f1d36820a07109a464 (diff) | |
download | mkinitcpio-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 'mkinitcpio')
-rw-r--r-- | mkinitcpio | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -74,14 +74,14 @@ while getopts ':c:k:s:b:g:a:p:m:vH:LMh' arg; do m) MESSAGE="$OPTARG" ;; v) QUIET="n" ;; H) source "${INSTDIR}/${OPTARG}"; - echo "Help for hook '${OPTARG}':" - help - exit 0 ;; + echo "Help for hook '${OPTARG}':" + help + exit 0 ;; L) echo "Available hooks: " - for h in ${INSTDIR}/*; do - echo " $(basename ${h})" - done - exit 0 ;; + for h in ${INSTDIR}/*; do + echo " $(basename ${h})" + done + exit 0 ;; M) SHOW_AUTOMODS="y" ;; h|?) usage ;; :) echo "${OPTARG} requires a value..."; usage ;; @@ -157,7 +157,7 @@ if [ -n "${BASEDIR}" ]; then fi if [ ! -f "${CONFIG}" ]; then - echo "config file '${CONFIG}' cannot be found, aborting..." + echo "config file '${CONFIG}' cannot be found, aborting..." exit 1 fi source "${CONFIG}" |