aboutsummaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@endlessm.com>2018-09-18 15:03:54 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-20 13:20:41 +0200
commit5c86583cf8220b53015c7738a84516bc909b3283 (patch)
tree62a31e4784f91be849ccf4381f2c911d2cced9ea /units
parentmeson: fix dirname/basename confusion in meson-and-wants.sh install helper (#... (diff)
downloadsystemd-5c86583cf8220b53015c7738a84516bc909b3283.tar.gz
systemd-5c86583cf8220b53015c7738a84516bc909b3283.tar.bz2
systemd-5c86583cf8220b53015c7738a84516bc909b3283.zip
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.
Diffstat (limited to 'units')
-rw-r--r--units/systemd-tmpfiles-setup.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-tmpfiles-setup.service.in b/units/systemd-tmpfiles-setup.service.in
index 384be5948..b02bbcd61 100644
--- a/units/systemd-tmpfiles-setup.service.in
+++ b/units/systemd-tmpfiles-setup.service.in
@@ -12,7 +12,7 @@ Description=Create Volatile Files and Directories
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
DefaultDependencies=no
Conflicts=shutdown.target
-After=local-fs.target systemd-sysusers.service
+After=local-fs.target systemd-sysusers.service systemd-journald.service
Before=sysinit.target shutdown.target
RefuseManualStop=yes