[Pkg-zfsonlinux-devel] Bug#855801: zfs-mount.service / zfs.target should be WantedBy=local-fs.target, not multi-user.target

Christopher Martin chrsmrtn at gmail.com
Tue Feb 21 17:25:08 UTC 2017


Package: zfsutils-linux
Version: 0.6.5.9-2

Currently, the zfs-mount.service is started through the zfs.target,
which is itself in turn WantedBy=multi-user.target. This happens after
local-fs.target is reached (which is when local file systems are
expected to be mounted). As a result, there is no guarantee that a
daemon or other service, many of which are also started through
multi-user.target, will be able to see ZFS mounts when they launch.
This can cause problems (e.g. a DLNA server that wants to serve files
stored on a ZFS array).

Instead, I would suggest that zfs-mount.service or the zfs.target
(whichever makes most sense) be WantedBy=local-fs.target, thereby
mounting ZFS along with all the other local filesystems. That way,
daemons etc. started later, through multi-user.target, will reliably
be able see the system's ZFS mounts when they launch.

Thanks,

Christopher Martin



More information about the Pkg-zfsonlinux-devel mailing list