diff --git a/Containerfile b/Containerfile index 700f4a2..a39325e 100644 --- a/Containerfile +++ b/Containerfile @@ -53,10 +53,9 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ ############################################################################### # 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/ -# 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-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/ # ============================================================================= -# 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 -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 -# erzeugen im Anschluss direkt im Image das 128-Layer OCI-Archiv. +# Wir räumen zuerst auf, validieren das System via bootc container lint RUN rm -rf /tmp/build /root/.cache/dnf/* && \ - bootc container lint - + bootc container lint