Prefetch on deadlists merge
[zfs.git] / contrib / dracut / 90zfs / zfs-env-bootfs.service.in
blob34c88037cac2b10f59658f1a89e3ea9799b5aa0b
1 [Unit]
2 Description=Set BOOTFS environment for dracut
3 Documentation=man:zpool(8)
4 DefaultDependencies=no
5 After=zfs-import-cache.service
6 After=zfs-import-scan.service
7 Before=zfs-import.target
9 [Service]
10 Type=oneshot
11 ExecStart=/bin/sh -c "exec systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | grep -m1 -vFx -)"
13 [Install]
14 WantedBy=zfs-import.target