mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-29 12:29:35 +03:00
ec41cafee1
When generating units with zfs-mount-generator, if the pool is already imported, zfs-import.target is not needed. This avoids a dependency loop on root-on-ZFS systems: systemd-random-seed.service After (via RequiresMountsFor) var-lib.mount After zfs-import.target After zfs-import-{cache,scan}.service After cryptsetup.service After systemd-random-seed.service Reviewed-by: Antonio Russo <antonio.e.russo@gmail.com> Reviewed-by: InsanePrawn <insane.prawny@gmail.com> Signed-off-by: Richard Laager <rlaager@wiktel.com> Closes #10388
18 lines
352 B
SYSTEMD
18 lines
352 B
SYSTEMD
[Unit]
|
|
Description=Mount ZFS filesystems
|
|
Documentation=man:zfs(8)
|
|
DefaultDependencies=no
|
|
After=systemd-udev-settle.service
|
|
After=zfs-import.target
|
|
After=systemd-remount-fs.service
|
|
Before=local-fs.target
|
|
ConditionPathIsDirectory=/sys/module/zfs
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=@sbindir@/zfs mount -a
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|