2019-04-03 00:14:39 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Set BOOTFS environment for dracut
|
|
|
|
Documentation=man:zpool(8)
|
|
|
|
DefaultDependencies=no
|
|
|
|
After=zfs-import-cache.service
|
|
|
|
After=zfs-import-scan.service
|
|
|
|
Before=zfs-import.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2022-04-04 20:52:43 +00:00
|
|
|
ExecStart=/bin/sh -c "exec systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | grep -m1 -vFx -)"
|
2019-04-03 00:14:39 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=zfs-import.target
|