2 Description=Set BOOTFS environment for dracut
3 Documentation=man:zpool(8)
5 After=zfs-import-cache.service
6 After=zfs-import-scan.service
7 Before=zfs-import.target
11 ExecStart=/bin/sh -c "exec systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | grep -m1 -vFx -)"
14 WantedBy=zfs-import.target