diff options
author | Jonathan Bauer | 2020-01-24 15:20:26 +0100 |
---|---|---|
committer | Jonathan Bauer | 2020-01-24 15:20:26 +0100 |
commit | fe350295f06eb3ba0252ca83468ccc90fd9bf9d0 (patch) | |
tree | e149f676ab415cf9cb97b13a6c0a5d1abac8a0b2 | |
parent | [SPUS] prevent removal of default-sql-server (diff) | |
download | setup-scripts-fe350295f06eb3ba0252ca83468ccc90fd9bf9d0.tar.gz setup-scripts-fe350295f06eb3ba0252ca83468ccc90fd9bf9d0.tar.xz setup-scripts-fe350295f06eb3ba0252ca83468ccc90fd9bf9d0.zip |
[SPUS] enable persistent journald
-rw-r--r-- | satellit_upgrader/updater.template.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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 |