tmpfiles: Order tmpfiles-setup after journald
authorJoão Paulo Rechi Vita <jprvita@endlessm.com>
Tue, 18 Sep 2018 22:03:54 +0000 (15:03 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Sep 2018 11:20:41 +0000 (13:20 +0200)
commit5c86583cf8220b53015c7738a84516bc909b3283
tree62a31e4784f91be849ccf4381f2c911d2cced9ea
parent3f491cccef221a8934d1b0873c8be4977f5c600a
tmpfiles: Order tmpfiles-setup after journald

systemd-tmpfiles-setup.service needs to be ordered after
systemd-journald.service, so entries in /run/log/journal are already
created when systemd-tmpfiles tries to adjust its permissions.

This is specially problematic for setups using a volatile journal where
the initrd does not ship a machine-id (i.e. OSTree-based systems), where
logs from the initrd will be inaccessible for users in the
systemd-journal group. It also has a side effect of `journalctl --user`
failing with "No journal files were opened due to insufficient
permissions".

Fixes #10128.
units/systemd-tmpfiles-setup.service.in