Move finding and mounting root on block devices into its own hook.
authorVictor Lowther <victor.lowther@gmail.com>
Thu, 19 Mar 2009 17:15:02 +0000 (12:15 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 20 Mar 2009 08:08:40 +0000 (03:08 -0500)
modules.d/95rootfs-block/install [new file with mode: 0755]
modules.d/95rootfs-block/mount-root.sh [moved from modules.d/99base/mount-root.sh with 100% similarity]
modules.d/95rootfs-block/parse-root-opts.sh [moved from modules.d/99base/parse-root-opts.sh with 100% similarity]
modules.d/99base/install

diff --git a/modules.d/95rootfs-block/install b/modules.d/95rootfs-block/install
new file mode 100755 (executable)
index 0000000..8782fb5
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+inst_hook pre-udev 10 "$moddir/parse-root-opts.sh"
+inst_hook mount 99 "$moddir/mount-root.sh"
index 30f18f9..2bb83e9 100755 (executable)
@@ -3,7 +3,4 @@ dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed sh ls
 # install our scripts and hooks
 inst "$moddir/init" "/init"
 inst "$moddir/switch_root" "/sbin/switch_root"
-inst_hook pre-udev 10 "$moddir/parse-root-opts.sh"
 inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
-inst_hook mount 90 "$moddir/resume.sh"
-inst_hook mount 99 "$moddir/mount-root.sh"