summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-04-18 13:44:02 +0200
committermaximilian attems <maks@debian.org>2006-04-18 13:44:02 +0200
commitc29d49d84418075e1887c965d978c7cc0e07a95f (patch)
tree96a6978e388412b3c121a4fde773dc60474602e4 /init
parent7f7832004e1fe8b9a13afb2ac765f4f611ffc6ed (diff)
downloadinitramfs-tools-c29d49d84418075e1887c965d978c7cc0e07a95f.tar.gz
initramfs-tools-c29d49d84418075e1887c965d978c7cc0e07a95f.zip
0.60:
- bug script - cryptoroot support - change exported variables - nfsopts, rootflags support - warn lilo+grub install - doc fixes
Diffstat (limited to 'init')
-rwxr-xr-xinit18
1 files changed, 14 insertions, 4 deletions
diff --git a/init b/init
index f69b3e8..04b7602 100755
--- a/init
+++ b/init
@@ -39,6 +39,8 @@ export readonly=y
export resume=${RESUME}
export rootmnt=/root
export debug=
+export cryptopts=${CRYPTOPTS}
+
for x in $(cat /proc/cmdline); do
case $x in
init=*)
@@ -55,8 +57,17 @@ for x in $(cat /proc/cmdline); do
;;
esac
;;
+ rootflags=*)
+ ROOTFLAGS="-o ${x#rootflags=}"
+ ;;
+ cryptopts=*)
+ cryptopts="${x#cryptopts=}"
+ ;;
nfsroot=*)
- NFSROOT=${x#nfsroot=}
+ NFSROOT="${x#nfsroot=}"
+ ;;
+ nfsopts=*)
+ NFSOPTS="-o ${x#nfsopts=}"
;;
boot=*)
BOOT=${x#boot=}
@@ -93,9 +104,6 @@ maybe_break top
# Don't do log messages here to avoid confusing usplash
run_scripts /scripts/init-top
-. /scripts/${BOOT}
-parse_numeric ${ROOT}
-
maybe_break modules
log_begin_msg "Loading essential drivers..."
load_modules
@@ -108,6 +116,8 @@ log_end_msg
maybe_break mount
log_begin_msg "Mounting root file system..."
+. /scripts/${BOOT}
+parse_numeric ${ROOT}
mountroot
log_end_msg