Create tmpfiles.d directories for bootc linting

Add directories for systemd-tmpfiles to avoid bootc linting warnings.
This commit is contained in:
humocs-man
2026-04-11 14:43:08 +02:00
committed by GitHub
parent 0972379521
commit 7b6914e0ff
+7
View File
@@ -62,6 +62,13 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \
/ctx/build/10-build.sh /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 # Erstelle einen "Drop-in" um den Befehl zu überschreiben
RUN mkdir -p /etc/systemd/system/bootc-fetch-apply-updates.service.d/ && \ RUN mkdir -p /etc/systemd/system/bootc-fetch-apply-updates.service.d/ && \
echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/bootc upgrade --staged --quiet" > \ echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/bootc upgrade --staged --quiet" > \