From fe350295f06eb3ba0252ca83468ccc90fd9bf9d0 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 24 Jan 2020 15:20:26 +0100 Subject: [SPUS] enable persistent journald --- satellit_upgrader/updater.template.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index bd30759..6832954 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -791,6 +791,15 @@ done # java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties &> /dev/null +# Create /var/log/journal to make the journal persistent. +# NOTE: The default journald configuration is set to max 4G space taken +# which should be easily satisfied by the size of the rootfs. +if ! [ -d /var/log/journal ]; then + mkdir -p /var/log/journal + systemd-tmpfiles --create --prefix /var/log/journal + systemctl restart systemd-journald +fi + # ************************** LIGHTY ************************ # XXX if [ -n "${restart["lighttpd.service"]}" ]; then -- cgit v1.2.3-55-g7522