summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init5
1 files changed, 4 insertions, 1 deletions
diff --git a/init b/init
index f2d6361..fe42234 100644
--- a/init
+++ b/init
@@ -11,6 +11,9 @@ msg ":: Loading Initramfs"
read CMDLINE </proc/cmdline
export CMDLINE
+# Used so hooks can override params to kinit
+export kinit_params=""
+
for cmd in $CMDLINE; do
case "$cmd" in
[0123456Ss]) continue ;;
@@ -74,4 +77,4 @@ fi
# Optimize fs type loop for mounting rootfs
msg ":: Initramfs Completed - control passing to kinit"
-exec /bin/kinit rootfstype=${FSTYPE} $CMDLINE < /dev/console > /dev/console
+exec /bin/kinit "root=${root}" ${kinit_params} < /dev/console > /dev/console