]> granicus.if.org Git - zfs/commitdiff
Add required files to initramfs
authorSteffen Müthing <steffen.muething@iwr.uni-heidelberg.de>
Mon, 16 Feb 2015 03:08:04 +0000 (04:08 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Feb 2015 00:12:50 +0000 (16:12 -0800)
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 <steffen.muething@iwr.uni-heidelberg.de>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #3110

dracut/90zfs/module-setup.sh.in

index b7a6f1d4540f62fd102a72875259dfb29ed90767..81401f2b5dd8379bec6bd2130faeb6ef4b0b69b8 100755 (executable)
@@ -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`