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