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