]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix another dependency loop
authorRichard Laager <rlaager@wiktel.com>
Sun, 31 May 2020 01:39:31 +0000 (20:39 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Aug 2020 17:17:14 +0000 (10:17 -0700)
commit62663fb7ec191ca2f872aec1636e94934212936f
tree3880f1eea03ba5db354b6a62a9c6a348055cb9b6
parentec41cafee1dac132775ca3eaa9aa7f56cf30b30f
Fix another dependency loop

zfs-load-key-DATASET.service was gaining an
After=systemd-journald.socket due to its stdout/stderr going to the
journal (which is the default).  systemd-journald.socket has an After
(via RequiresMountsFor=/run/systemd/journal) on -.mount.  If the root
filesystem is encrypted, -.mount gets an After
zfs-load-key-DATASET.service.

By setting stdout and stderr to null on the key load services, we avoid
this loop.

Reviewed-by: Antonio Russo <antonio.e.russo@gmail.com>
Reviewed-by: InsanePrawn <insane.prawny@gmail.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #10356
Closes #10388
etc/systemd/system-generators/zfs-mount-generator.in