From adc302cba93077923630e0333c6acb8dd5e5d21e Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sun, 12 Apr 2026 17:16:09 +0200 Subject: [PATCH] Refactor tmpfiles configuration in Containerfile Remove redundant directory creation for /var/lib/rpm in tmpfiles configuration. --- Containerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index c820ff2..b2cb5ee 100644 --- a/Containerfile +++ b/Containerfile @@ -67,10 +67,8 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ # Dies stellt sicher, dass /var/lib/dnf und /var/lib/rpm beim Booten sauber existieren. RUN mkdir -p /etc/tmpfiles.d/ && \ echo "d /var/lib/dnf 0755 root root -" > /etc/tmpfiles.d/bootc-fix.conf && \ - echo "d /var/lib/rpm 0755 root root -" >> /etc/tmpfiles.d/bootc-fix.conf - -# Erstelle einen "Drop-in" um den Befehl zu überschreiben -RUN mkdir -p /etc/systemd/system/bootc-fetch-apply-updates.service.d/ && \ + echo "d /var/lib/rpm 0755 root root -" >> /etc/tmpfiles.d/bootc-fix.conf && \ + mkdir -p /etc/systemd/system/bootc-fetch-apply-updates.service.d/ && \ echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/bootc upgrade --staged --quiet" > \ /etc/systemd/system/bootc-fetch-apply-updates.service.d/override.conf