Skip to content

Commit

Permalink
Ensure mount unit pilots when its ZFS key is loaded
Browse files Browse the repository at this point in the history
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.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Signed-off-by: Didier Roche <didrocks@ubuntu.com>
  • Loading branch information
jibel and didrocks committed Jun 19, 2020
1 parent 7564073 commit e80ded6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion etc/systemd/system-generators/zfs-mount-generator.in
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ Documentation=man:zfs-mount-generator(8)
DefaultDependencies=no
Wants=${wants}
After=${after}
Before=${before}
${requires}
${keymountdep}
Expand Down

0 comments on commit e80ded6

Please sign in to comment.