Refactor tmpfiles configuration in Containerfile
Remove redundant directory creation for /var/lib/rpm in tmpfiles configuration.
This commit is contained in:
+2
-4
@@ -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.
|
# Dies stellt sicher, dass /var/lib/dnf und /var/lib/rpm beim Booten sauber existieren.
|
||||||
RUN mkdir -p /etc/tmpfiles.d/ && \
|
RUN mkdir -p /etc/tmpfiles.d/ && \
|
||||||
echo "d /var/lib/dnf 0755 root root -" > /etc/tmpfiles.d/bootc-fix.conf && \
|
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
|
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/ && \
|
||||||
# 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" > \
|
echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/bootc upgrade --staged --quiet" > \
|
||||||
/etc/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
|
/etc/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user