]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure mount unit pilots when its ZFS key is loaded
authorJean-Baptiste Lallement <jean-baptiste@ubuntu.com>
Thu, 18 Jun 2020 16:47:27 +0000 (18:47 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 19 Jul 2020 17:03:02 +0000 (10:03 -0700)
commitde817cc7b7c2ab3dfa8348ae0e826e84c1d416eb
tree1e63382225f11fe80b607b2909039c15b8483d01
parent026e529cb336d1d656eaa33f58ac911a70f273cd
Ensure mount unit pilots when its ZFS key is loaded

Drop Before=zfs.mount dependency explicity on generated key-load .service
unit.
Indeed, the associated mount unit is After=<dataset-key-load>.service.
This is thus the mount point which controls at what point it wants to be
mounted (Before=zfs-mount.service in stock generator), but this can be
an automount point, or triggered by another service.
This additional dependency from the key load service is not needed thus.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Signed-off-by: Didier Roche <didrocks@ubuntu.com>
Closes #10477
etc/systemd/system-generators/zfs-mount-generator.in