aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lallement <[email protected]>2020-06-18 18:47:27 +0200
committerBrian Behlendorf <[email protected]>2020-07-19 10:03:02 -0700
commitde817cc7b7c2ab3dfa8348ae0e826e84c1d416eb (patch)
tree1e63382225f11fe80b607b2909039c15b8483d01
parent026e529cb336d1d656eaa33f58ac911a70f273cd (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Didier Roche <[email protected]> Signed-off-by: Didier Roche <[email protected]> Closes #10477
-rwxr-xr-xetc/systemd/system-generators/zfs-mount-generator.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/etc/systemd/system-generators/zfs-mount-generator.in b/etc/systemd/system-generators/zfs-mount-generator.in
index 147855180..197180533 100755
--- a/etc/systemd/system-generators/zfs-mount-generator.in
+++ b/etc/systemd/system-generators/zfs-mount-generator.in
@@ -191,7 +191,6 @@ Documentation=man:zfs-mount-generator(8)
DefaultDependencies=no
Wants=${wants}
After=${after}
-Before=${before}
${requires}
${keymountdep}