4 # We depend on udev-rules being loaded
5 [ "$1" = "-d" ] && return 0
7 # Verify the zfs tool chain
8 which zpool >/dev/null 2>&1 || return 1
9 which zfs >/dev/null 2>&1 || return 1
31 inst_rules @udevruledir@/90-zfs.rules
32 inst_rules @udevruledir@/69-vdev.rules
33 inst_rules @udevruledir@/60-zvol.rules
34 dracut_install @sbindir@/zfs
35 dracut_install @sbindir@/zpool
36 dracut_install @udevdir@/vdev_id
37 dracut_install @udevdir@/zvol_id
38 dracut_install mount.zfs
40 inst_hook cmdline 95 "$moddir/parse-zfs.sh"
41 inst_hook mount 98 "$moddir/mount-zfs.sh"
43 if [ -e @sysconfdir@/zfs/zpool.cache ]; then
44 inst @sysconfdir@/zfs/zpool.cache
47 # Synchronize initramfs and system hostid
49 AA=`hostid | cut -b 1,2`
50 BB=`hostid | cut -b 3,4`
51 CC=`hostid | cut -b 5,6`
52 DD=`hostid | cut -b 7,8`
53 printf "\x$DD\x$CC\x$BB\x$AA" >$TMP
54 inst_simple "$TMP" /etc/hostid