From 6ea6b79e628e9eecc83678634934824c3a86ce89403546058ffaa392aa58fd32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Fri, 12 Apr 2024 12:15:50 +0000 Subject: [PATCH] [info=ba9ab281cc529421f944210f3edc40c6] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/init-image?expand=0&rev=85 --- Dockerfile | 2 +- init-image.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9ee0e14..dadc5ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ LABEL org.opensuse.release-stage="released" # endlabelprefix LABEL usage="This container should only be used to build containers for daemons. Add your packages and enable services using systemctl." -RUN set -euo pipefail; zypper -n in --no-recommends systemd gzip; zypper -n clean; rm -rf /var/log/* +RUN set -euo pipefail; zypper -n in --no-recommends systemd gzip; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} CMD ["/usr/lib/systemd/systemd"] RUN mkdir -p /etc/systemd/system.conf.d/ && \ diff --git a/init-image.changes b/init-image.changes index ff7d40e..3d6edb1 100644 --- a/init-image.changes +++ b/init-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 12 12:03:53 UTC 2024 - Dirk Mueller + +- Don't wipe everything in /var/log, only remove log files (this omits directories owned by packages) + ------------------------------------------------------------------- Fri Mar 22 17:20:58 UTC 2024 - Dirk Mueller