summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-05 18:36:55 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-05 18:36:55 +0200
commitf486b7ed6f8e289c8d897fcaeac7a0f52c7493c0 (patch)
treeb2128c29643067a0edbc734a8565d58b5928dd43 /init
parent2c6b8367f0f526c6a12b91b85f2f7f3ef35b5559 (diff)
downloadmkinitcpio-f486b7ed6f8e289c8d897fcaeac7a0f52c7493c0.tar.gz
mkinitcpio-f486b7ed6f8e289c8d897fcaeac7a0f52c7493c0.tar.xz
kinit param handling change to match kinit patch (cmdline.patch)
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@68 880c04e9-e011-0410-abf7-b926e227c9cd
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