ARC: Cache arc_c value during arc_evict()
[zfs.git] / contrib / dracut / 90zfs / zfs-nonroot-necessities.service.in
blob8f420c737c72fb5e838725cd77af2f2ec0983996
1 [Unit]
2 Before=initrd-root-fs.target
3 After=sysroot.mount
4 DefaultDependencies=no
5 ConditionEnvironment=BOOTFS
7 [Service]
8 Type=oneshot
9 PassEnvironment=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";                    \
16     };                                                                \
17     for_relevant_root_children "${BOOTFS}" _zfs_nonroot_necessities_cb'
19 [Install]
20 RequiredBy=initrd-root-fs.target