Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
dracut
> 0072-systemd-ensure-journal-is-volatile.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0072-systemd-ensure-journal-is-volatile.patch of Package dracut
From 34be5b4f97deb44b857940aa0b2efbfb17c59349 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. --- modules.d/00systemd/module-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh index deb5e06c..951a5be9 100755 --- a/modules.d/00systemd/module-setup.sh +++ b/modules.d/00systemd/module-setup.sh @@ -210,9 +210,10 @@ install() { done 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"