core: fix output (logging) for mount units (#7603)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 13 Jan 2018 12:30:43 +0000 (12:30 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 13 Jan 2018 13:03:13 +0000 (13:03 +0000)
commit5804e1b6ff2d871500f9bc205e6fa28d4e984961
tree5651432a3c0811907582fb4219cacc0f7763e370
parentaad67b80c5e99f173b5b37f0437bd51c1117e1ab
core: fix output (logging) for mount units (#7603)

Documentation - systemd.exec - strongly implies mount units get logging.

It is safe for mounts to depend on systemd-journald.socket.  There is no
cyclic dependency generated.  This is because the root, -.mount, was
already deliberately set to EXEC_OUTPUT_NULL.  See comment in
mount_load_root_mount().  And /run is excluded from being a mount unit.

Nor does systemd-journald depend on /var.  It starts earlier, initially
logging to /run.

Tested before/after using `systemctl stop tmp.mount`.
src/core/mount.c