diff --git a/Containerfile b/Containerfile index 7921045..c820ff2 100644 --- a/Containerfile +++ b/Containerfile @@ -62,6 +62,13 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ --mount=type=tmpfs,dst=/tmp \ /ctx/build/10-build.sh +# Nach dem Ausführen von 10-build.sh: +# Deklaration der Verzeichnisse für systemd-tmpfiles, um bootc-Linting-Warnungen zu vermeiden. +# 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 -e "[Service]\nExecStart=\nExecStart=/usr/bin/bootc upgrade --staged --quiet" > \