HomeFreeBSD

Fix another dependency loop

Description

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

Details

Provenance
Richard Laager <rlaager@wiktel.com>Authored on May 31 2020, 1:39 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 28 2020, 5:17 PM
Parents
rGec41cafee1da: Fix a dependency loop
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG62663fb7ec19: Fix another dependency loop (authored by Richard Laager <rlaager@wiktel.com>).Aug 28 2020, 5:17 PM