Some redundancy is present in the systemd dependencies, as
noticed in PR#6764. Existing setups might rely on these quirks,
so these cleanups have been moved to the development branch.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #6822
# ZFS is enabled by default
enable zfs-import-cache.service
disable zfs-import-scan.service
+enable zfs-import.target
enable zfs-mount.service
enable zfs-share.service
enable zfs-zed.service
After=systemd-udev-settle.service
After=cryptsetup.target
After=systemd-remount-fs.service
-Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=@sysconfdir@/zfs/zpool.cache
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
-Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
[Unit]
Description=ZFS pool import target
+Before=dracut-mount.service
[Install]
-WantedBy=zfs-mount.service
WantedBy=zfs.target
ExecStart=@sbindir@/zfs mount -a
[Install]
-WantedBy=zfs-share.service
WantedBy=zfs.target
Documentation=man:zfs(8)
After=nfs-server.service nfs-kernel-server.service
After=smb.service
-After=zfs-mount.service
+Wants=zfs-mount.service
PartOf=nfs-server.service nfs-kernel-server.service
PartOf=smb.service
[Unit]
Description=ZFS Event Daemon (zed)
Documentation=man:zed(8)
-After=zfs-import-cache.service
-After=zfs-import-scan.service
+After=zfs-import.target
[Service]
ExecStart=@sbindir@/zed -F