Blame SOURCES/0414-systemd-ensure-journal-is-volatile.patch

18971c
From 53310e44c9b785641d4889b1dab350b562df5ed9 Mon Sep 17 00:00:00 2001
18971c
From: Michael Chapman <mike@very.puzzling.org>
18971c
Date: Wed, 4 May 2016 10:49:56 +1000
18971c
Subject: [PATCH] systemd: ensure journal is volatile
18971c
18971c
If journald.conf already contains Storage=persistent, journald will
18971c
write to /var/log/journal/, which ends up at /run/initramfs/log/journal/
18971c
after switching root. We want to make sure early boot logs are written
18971c
to /run/log/journal/ so they can be flushed to /var/log/journal/ after
18971c
switching root.
18971c
18971c
(cherry picked from commit 5dea430e087ec7749080547a6a6fe5b152f665ef)
18971c
---
18971c
 modules.d/98systemd/module-setup.sh | 3 ++-
18971c
 1 file changed, 2 insertions(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
18971c
index 64b83a0e..10beadda 100755
18971c
--- a/modules.d/98systemd/module-setup.sh
18971c
+++ b/modules.d/98systemd/module-setup.sh
18971c
@@ -255,9 +255,10 @@ install() {
18971c
 
18971c
 
18971c
     mkdir -p "$initdir/etc/systemd"
18971c
-    # turn off RateLimit for journal
18971c
+    # We must use a volatile journal, and we don't want rate-limiting
18971c
     {
18971c
         echo "[Journal]"
18971c
+        echo "Storage=volatile"
18971c
         echo "RateLimitInterval=0"
18971c
         echo "RateLimitBurst=0"
18971c
     } >> "$initdir/etc/systemd/journald.conf"