From b54d1636f0a953db087842527e1f33f785fee304 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 10 Jan 2019 09:45:24 +0100 Subject: [PATCH] systemd: Remove `/var/log/journal` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If `/var/log/journal` is present, systemd-journald flushes the log to the disk, which we do not want yet, as we still use syslog. Therefore, remove the directory. We probably had manually deleted it on all systems with systemd 237, and didn’t update the bee file accordingly, so that the logs were kept when updating to systemd 239. --- systemd.be0 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systemd.be0 b/systemd.be0 index dc791a7be..7e94c4b69 100755 --- a/systemd.be0 +++ b/systemd.be0 @@ -98,6 +98,9 @@ mee_install_post() { rm -rv ${D}/etc/systemd/system/dbus-org.freedesktop.network1.service rm -rv ${D}/etc/systemd/system/multi-user.target.wants/systemd-networkd.service rm -rv ${D}/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service + + # Remove directory to disable persistent storage of logs + rm -rv ${D}/var/log/journal } ###############################################################################