From de817cc7b7c2ab3dfa8348ae0e826e84c1d416eb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lallement Date: Thu, 18 Jun 2020 18:47:27 +0200 Subject: [PATCH] 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=.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 Reviewed-by: Brian Behlendorf Co-authored-by: Didier Roche Signed-off-by: Didier Roche Closes #10477 --- etc/systemd/system-generators/zfs-mount-generator.in | 1 - 1 file changed, 1 deletion(-) diff --git a/etc/systemd/system-generators/zfs-mount-generator.in b/etc/systemd/system-generators/zfs-mount-generator.in index 1478551805..1971805337 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}