From e8e68905c9b8a415099e6d871bb8202f51b4aef2 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 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}