Refactor comments and structure in Containerfile

Updated comments and organization in Containerfile for clarity.
This commit is contained in:
humocs-man
2026-05-23 12:48:21 +02:00
committed by GitHub
parent cf9862c349
commit 70f1fb4765
+8 -10
View File
@@ -53,10 +53,9 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
############################################################################### ###############################################################################
# 1. Kopiere die Filesystem-Fixes (tmpfiles.d) # 1. Kopiere die Filesystem-Fixes (tmpfiles.d)
# COPY erstellt die Zielpfade automatisch, falls sie noch nicht existieren.
COPY configs/bootc-fix.conf /etc/tmpfiles.d/ COPY configs/bootc-fix.conf /etc/tmpfiles.d/
# 2. Kopiere den Systemd-Overrides (Update-Timer und -Service) # 2. Kopiere die Systemd-Overrides (Update-Timer und -Service)
COPY configs/bootc-timer-override.conf /etc/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf COPY configs/bootc-timer-override.conf /etc/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf
COPY configs/bootc-override.conf /etc/systemd/system/bootc-fetch-apply-updates.service.d/override.conf COPY configs/bootc-override.conf /etc/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
@@ -65,19 +64,18 @@ COPY configs/bootc-override.conf /etc/systemd/system/bootc-fetch-apply-updates.s
COPY scripts/notify-bootc-user.sh /usr/bin/ COPY scripts/notify-bootc-user.sh /usr/bin/
# ============================================================================= # =============================================================================
# FLATPAK BAZAAR & SYSTEMD CONFIGURATION # SYSTEMD SERVICES & PRESETS (Modern Bootc Architecture)
# ============================================================================= # =============================================================================
# 4. Kopiere und aktiviere den Systemd-Service für den Erst-Boot # 4. Kopiere den Systemd-Service für den Erst-Boot von Flatpak
COPY configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service COPY configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service
RUN mkdir -p /usr/lib/systemd/system/multi-user.target.wants && \
ln -s /usr/lib/systemd/system/flatpak-preinstall.service /usr/lib/systemd/system/multi-user.target.wants/flatpak-preinstall.service # 5. Kopiere die Systemd Presets (Aktiviert flathub-preinstall, libvirtd, etc. ohne /etc-Verschmutzung)
COPY configs/99-custom.preset /usr/lib/systemd/system-preset/99-custom.preset
############################################################################### ###############################################################################
# LINTING & NATIVE RE-CHUNK GENERATION # LINTING
############################################################################### ###############################################################################
# Wir räumen zuerst auf, validieren das System via bootc container lint und # Wir räumen zuerst auf, validieren das System via bootc container lint
# erzeugen im Anschluss direkt im Image das 128-Layer OCI-Archiv.
RUN rm -rf /tmp/build /root/.cache/dnf/* && \ RUN rm -rf /tmp/build /root/.cache/dnf/* && \
bootc container lint bootc container lint