From 7b6914e0ff78f7b8e5a8554dd3ab9a9e9431d8f1 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sat, 11 Apr 2026 14:43:08 +0200 Subject: [PATCH] Create tmpfiles.d directories for bootc linting Add directories for systemd-tmpfiles to avoid bootc linting warnings. --- Containerfile | 7 +++++++ 1 file changed, 7 insertions(+) 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" > \