15 lines
375 B
SYSTEMD
15 lines
375 B
SYSTEMD
|
[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
|
||
|
ExecStart=/bin/sh -c "/bin/systemctl set-environment BOOTFS=$(/usr/local/sbin/zpool list -H -o bootfs | grep -m1 -v '^-$')"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=zfs-import.target
|