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

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