aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/journald-volatile.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/journald-volatile.conf')
-rw-r--r--meta/recipes-core/systemd/systemd/journald-volatile.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/journald-volatile.conf b/meta/recipes-core/systemd/systemd/journald-volatile.conf
new file mode 100644
index 0000000000..b11e1606b5
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/journald-volatile.conf
@@ -0,0 +1,6 @@
+# If /var/volatile is a mount point then make sure to mount it before
+# the journal starts. This is because base-files creates a symlink
+# /var/log -> /var/volatile/log. And if the journal starts before the mount
+# happens, the journal will appear empty until restarted.
+[Unit]
+After=var-volatile.mount