aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Müthing <[email protected]>2015-02-16 04:08:04 +0100
committerBrian Behlendorf <[email protected]>2015-02-17 16:12:50 -0800
commit1543b20a87979782d67f7ccfc845e8a918efc3b3 (patch)
tree2e10604e3a717e2739bc2ca55db437d1f54e3d65
parent1611bb7b4fb06cfe43730222e40ef6a109138f12 (diff)
Add required files to initramfs
The dracut module installs the udev rules and the vdev_id utility for creating the /dev/disk/by-vdev/ names, but omits some additional utilities and the config file required by vdev_id. Signed-off-by: Steffen M<C3><BC>thing <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #3110
-rwxr-xr-xdracut/90zfs/module-setup.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/dracut/90zfs/module-setup.sh.in b/dracut/90zfs/module-setup.sh.in
index b7a6f1d45..81401f2b5 100755
--- a/dracut/90zfs/module-setup.sh.in
+++ b/dracut/90zfs/module-setup.sh.in
@@ -37,6 +37,8 @@ install() {
dracut_install @udevdir@/zvol_id
dracut_install mount.zfs
dracut_install hostid
+ dracut_install awk
+ dracut_install head
inst_hook cmdline 95 "$moddir/parse-zfs.sh"
inst_hook mount 98 "$moddir/mount-zfs.sh"
inst_hook shutdown 30 "$moddir/export-zfs.sh"
@@ -45,6 +47,10 @@ install() {
inst @sysconfdir@/zfs/zpool.cache
fi
+ if [ -e @sysconfdir@/zfs/vdev_id.conf ]; then
+ inst @sysconfdir@/zfs/vdev_id.conf
+ fi
+
# Synchronize initramfs and system hostid
AA=`hostid | cut -b 1,2`
BB=`hostid | cut -b 3,4`