2 Before=initrd-root-fs.target
5 ConditionEnvironment=BOOTFS
10 ExecStart=/bin/sh -c ' \
11 . /lib/dracut-zfs-lib.sh; \
12 _zfs_nonroot_necessities_cb() { \
13 @sbindir@/zfs mount | grep -m1 -q "^$1 " && return 0; \
14 echo "Mounting $1 on /sysroot$2"; \
15 mount -o zfsutil -t zfs "$1" "/sysroot$2"; \
17 for_relevant_root_children "${BOOTFS}" _zfs_nonroot_necessities_cb'
20 RequiredBy=initrd-root-fs.target