mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-29 12:29:35 +03:00
984362a71e
On openSUSE the initrd has systemctl in /usr/bin, check this path as well. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org> Closes #11487
15 lines
364 B
SYSTEMD
15 lines
364 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 "systemctl set-environment BOOTFS=$(@sbindir@/zpool list -H -o bootfs | grep -m1 -v '^-$')"
|
|
|
|
[Install]
|
|
WantedBy=zfs-import.target
|