From 35f90aafd20946176313b15ebcfd0c919bcd09b5 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Thu, 19 Mar 2009 12:15:02 -0500 Subject: [PATCH] Move finding and mounting root on block devices into its own hook. --- modules.d/95rootfs-block/install | 3 +++ modules.d/{99base => 95rootfs-block}/mount-root.sh | 0 modules.d/{99base => 95rootfs-block}/parse-root-opts.sh | 0 modules.d/99base/install | 3 --- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100755 modules.d/95rootfs-block/install rename modules.d/{99base => 95rootfs-block}/mount-root.sh (100%) rename modules.d/{99base => 95rootfs-block}/parse-root-opts.sh (100%) diff --git a/modules.d/95rootfs-block/install b/modules.d/95rootfs-block/install new file mode 100755 index 000000000..8782fb5bc --- /dev/null +++ b/modules.d/95rootfs-block/install @@ -0,0 +1,3 @@ +#!/bin/sh +inst_hook pre-udev 10 "$moddir/parse-root-opts.sh" +inst_hook mount 99 "$moddir/mount-root.sh" diff --git a/modules.d/99base/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh similarity index 100% rename from modules.d/99base/mount-root.sh rename to modules.d/95rootfs-block/mount-root.sh diff --git a/modules.d/99base/parse-root-opts.sh b/modules.d/95rootfs-block/parse-root-opts.sh similarity index 100% rename from modules.d/99base/parse-root-opts.sh rename to modules.d/95rootfs-block/parse-root-opts.sh diff --git a/modules.d/99base/install b/modules.d/99base/install index 30f18f9ca..2bb83e94e 100755 --- a/modules.d/99base/install +++ b/modules.d/99base/install @@ -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" -- 2.47.3