2026-02-17 17:27:26 +01:00
###############################################################################
# PROJECT NAME CONFIGURATION
###############################################################################
2026-05-10 19:16:03 +02:00
# Name: fluffy-pancake
2026-02-17 17:27:26 +01:00
#
2026-10-17 18:10:44 +02:00
# Projektkennung (konsistent in Justfile, README, Workflows). Diese Datei ist
# die Referenz fuer die Image-Identitaet; bei Umbenennung alle Stellen
# (Justfile image_name, README-Titel, Workflow-IMAGE_NAME) mitziehen.
2026-02-17 17:27:26 +01:00
###############################################################################
###############################################################################
2026-08-08 07:42:29 +00:00
# MULTI-STAGE BUILD ARCHITECTURE (Cache-Isolierung)
2026-02-17 17:27:26 +01:00
###############################################################################
2026-08-08 07:42:29 +00:00
# Isolierte Kontext-Stage NUR für die Build-Skripte.
# Änderungen an /configs oder /scripts hebeln dadurch die DNF-Layer (1-5) NICHT mehr aus!
FROM scratch AS build-ctx
2026-02-17 17:27:26 +01:00
COPY build /build
2026-05-01 13:35:20 +02:00
###############################################################################
# BASE IMAGE
###############################################################################
2026-11-08 10:18:44 +01:00
# Umbriel/Noctalia-Zweig: minimale fedora-bootc-Basis statt Kinoite.
# Der komplette Desktop (Umbriel-Compositor, greetd, Noctalia-Shell) wird in
# den Layern unten aufgebaut. Der Kinoite-Stand bleibt auf Branch main / Tag
# :stable erhalten.
2026-11-04 17:38:36 +01:00
FROM quay.io/fedora/fedora-bootc:45
2026-02-17 17:27:26 +01:00
2026-05-01 13:35:20 +02:00
### /opt (Unverändert)
2026-02-17 17:27:26 +01:00
# RUN rm /opt && mkdir /opt
2026-05-01 13:35:20 +02:00
###############################################################################
2026-05-24 13:33:53 +02:00
# EXECUTION STAGE (Aufgeteilt in Cache-Layer)
2026-05-01 13:35:20 +02:00
###############################################################################
2026-05-24 13:33:53 +02:00
# LAYER 1: Repositories einrichten (Ändert sich fast nie)
2026-08-08 07:42:29 +00:00
RUN --mount= type = bind,from= build-ctx,source= /build/10-repos.sh,target= /tmp/10-repos.sh \
2026-02-17 17:27:26 +01:00
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
2026-05-24 13:33:53 +02:00
bash /tmp/10-repos.sh && dnf5 clean all
2026-11-08 10:18:44 +01:00
# LAYER 2: Desktop-Basis (Umbriel-Compositor, Portale, Audio, Docking-Tools)
2026-09-27 12:28:46 +02:00
RUN --mount= type = bind,from= build-ctx,source= /build/20-desktop-labwc.sh,target= /tmp/20-desktop-labwc.sh \
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/20-desktop-labwc.sh
2026-05-24 13:33:53 +02:00
# LAYER 3: Virtualisierung & Tools (Großer Download - stark gecacht)
2026-08-08 07:42:29 +00:00
RUN --mount= type = bind,from= build-ctx,source= /build/30-virt.sh,target= /tmp/30-virt.sh \
2026-07-12 15:01:23 +00:00
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/30-virt.sh
2026-05-24 13:33:53 +02:00
2026-08-08 07:16:59 +00:00
# LAYER 4: Multimedia Stack (Großer Download - stark gecacht)
2026-08-08 07:42:29 +00:00
RUN --mount= type = bind,from= build-ctx,source= /build/40-multimedia.sh,target= /tmp/40-multimedia.sh \
2026-05-24 13:33:53 +02:00
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
2026-08-08 07:16:59 +00:00
bash /tmp/40-multimedia.sh
2026-05-24 13:33:53 +02:00
# LAYER 5: Flatpak Vorbereitung (Winzig, ganz unten)
2026-08-08 07:42:29 +00:00
RUN --mount= type = bind,from= build-ctx,source= /build/50-prepare-flatpak-for-bazaar.sh,target= /tmp/50-prepare-flatpak-for-bazaar.sh \
2026-10-17 13:12:32 +02:00
--mount= type = cache,dst= /var/cache \
2026-05-24 13:33:53 +02:00
--mount= type = tmpfs,dst= /tmp \
bash /tmp/50-prepare-flatpak-for-bazaar.sh
2026-04-24 20:54:59 +02:00
2026-11-04 19:38:10 +01:00
# LAYER 6: Login-Stack (greetd + tuigreet-Fallback + Noctalia-Greeter)
# Bewusst NACH den großen Download-Layern: Aenderungen an PAM/Greeter
# invalidieren dann nur noch diese Schicht, nicht Virt/Multimedia/Flatpak.
RUN --mount= type = bind,from= build-ctx,source= /build/21-greetd.sh,target= /tmp/21-greetd.sh \
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/21-greetd.sh
# LAYER 7: Noctalia Shell v5 (nativ, aus Fedora-Repos)
2026-11-08 10:18:44 +01:00
RUN --mount= type = bind,from= build-ctx,source= /build/22-umbriel.sh,target= /tmp/22-umbriel.sh \
2026-11-04 19:38:10 +01:00
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
2026-11-08 10:18:44 +01:00
bash /tmp/22-umbriel.sh
2026-11-04 19:38:10 +01:00
# LAYER 8: Plymouth Bootsplash (Text-Theme + Initramfs-Rebuild)
RUN --mount= type = bind,from= build-ctx,source= /build/23-plymouth.sh,target= /tmp/23-plymouth.sh \
--mount= type = bind,from= build-ctx,source= /build/plymouth-theme,target= /tmp/plymouth-theme \
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/23-plymouth.sh
2026-05-01 13:35:20 +02:00
###############################################################################
# CONFIGURATION LAYER (Der "saubere" Teil)
###############################################################################
2026-03-02 18:45:46 +01:00
2026-09-05 14:56:19 +02:00
# 1. Kopiere die Filesystem-Fixes (tmpfiles.d, Vendor-Default)
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/bootc-fix.conf /usr/lib/tmpfiles.d/bootc-fix.conf
2026-04-03 18:03:04 +02:00
2026-09-05 17:48:12 +00:00
# 1b. Container-Policy & Registry Auth für bootc
2026-09-05 14:56:19 +02:00
# sigstoreSigned-Pflicht für eigenes Image, Public-Registries explizit erlaubt
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/containers/policy.json /etc/containers/policy.json
COPY --chmod= 0644 cosign.pub /etc/pki/containers/cosign.pub
COPY --chmod= 0600 configs/auth.json /etc/containers/auth.json
COPY --chmod= 0644 configs/humocs-man.yaml /etc/containers/registries.d/humocs-man.yaml
2026-09-05 17:48:12 +00:00
2026-09-05 13:34:57 +00:00
RUN chmod 0644 /etc/containers/policy.json /etc/pki/containers/cosign.pub && \
2026-09-05 19:12:36 +00:00
chmod 0600 /etc/containers/auth.json && \
2026-09-05 17:48:12 +00:00
python3 -m json.tool /etc/containers/policy.json > /dev/null && \
2026-09-05 19:12:36 +00:00
python3 -m json.tool /etc/containers/auth.json > /dev/null
2026-09-05 14:56:19 +02:00
# 2. Kopiere die Systemd-Overrides als Vendor-Drop-ins (kein /etc/-Override im Image)
2026-10-10 17:12:40 +02:00
# --chmod=0644: keine world-writable Units (systemd warnt sonst im Journal).
# HINWEIS: Zurueckgesetzt wird nur ExecStart. Kuenftige Upstream-ExecStartPre/
# ExecCondition-Zeilen liefen weiter (bewusst: kein Over-Override).
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/bootc-timer-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf
COPY --chmod= 0644 configs/bootc-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
2026-11-07 19:49:03 +01:00
# boltd (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> cosmetic
# "unknown NHI PCI id"-Meldung. Log-Stufe auf warning begrenzen.
COPY --chmod= 0644 configs/systemd/system/boltd.service.d/log-level.conf /usr/lib/systemd/system/boltd.service.d/log-level.conf
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf
2026-10-25 20:16:08 +01:00
# Drop-in-Verzeichnisse muessen ausfuehrbar (0755) sein, sonst kann systemd
# die *.conf darin nicht lesen (COPY --chmod=0644 erzeugt sonst 0644-Dirs).
2026-11-07 19:49:03 +01:00
# Die *.conf selbst duerfen NICHT world-writable sein (systemd warnt sonst
# "Configuration file ... is marked world-writable" und ignoriert Werte).
2026-10-25 20:16:08 +01:00
RUN chmod 0755 \
/usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d \
/usr/lib/systemd/system/bootc-fetch-apply-updates.service.d \
/usr/lib/systemd/system/systemd-remount-fs.service.d \
2026-11-07 19:49:03 +01:00
/usr/lib/systemd/system/boltd.service.d \
/etc/pki/containers && \
chmod 0644 \
/usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf \
/usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf \
/usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf \
2026-11-07 20:08:21 +01:00
/usr/lib/systemd/system/boltd.service.d/log-level.conf
2026-05-01 13:35:20 +02:00
2026-10-03 13:41:09 +02:00
# 2b. Kernel-Args (Bootsplash + ABM-Default, Details in der Datei)
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/kargs.toml /usr/lib/bootc/kargs.d/kargs.toml
2026-09-27 21:41:07 +02:00
2026-11-08 13:11:47 +01:00
# BIB (Bootc Image Builder) nutzt osbuild-composer, das /usr/share/dnf5/repos.d
# nicht liest (nur /etc/yum.repos.d). Fedora-45-Repos dort spiegeln, damit
# BIB die Repos findet (sonst "There are no enabled repositories").
RUN for f in /usr/share/dnf5/repos.d/fedora*.repo /usr/share/dnf5/repos.d/rpmfusion*.repo; do \
[[ -f " $f " ]] && cp " $f " /etc/yum.repos.d/; \
done
2026-11-07 19:49:03 +01:00
# 2c. Sysctl-Tuning (SSD/NVMe-schonend, Details in der Datei)
COPY --chmod= 0644 configs/sysctl/99-fluffy-pancake.conf /usr/lib/sysctl.d/99-fluffy-pancake.conf
# NetworkManager: WiFi-Power-Save fuer AX210 (3 = enabled)
COPY --chmod= 0644 configs/NetworkManager/conf.d/99-wifi-powersave.conf /usr/lib/NetworkManager/conf.d/99-wifi-powersave.conf
# WirePlumber: Audio-Idle-Suspend 30 s statt 5 s
COPY --chmod= 0644 configs/wireplumber/wireplumber.conf.d/99-suspend-timeout.conf /usr/share/wireplumber/wireplumber.conf.d/99-suspend-timeout.conf
2026-11-07 20:08:21 +01:00
# Sicherstellen, dass die neu kopierten *.conf nicht world-writable sind
# (systemd/wireplumber warnen sonst und ignorieren Werte).
RUN chmod 0644 \
/usr/lib/sysctl.d/99-fluffy-pancake.conf \
/usr/lib/NetworkManager/conf.d/99-wifi-powersave.conf \
/usr/share/wireplumber/wireplumber.conf.d/99-suspend-timeout.conf
2026-09-27 12:28:46 +02:00
# 3. Kopiere die Session-Helfer und Desktop-Defaults
2026-05-30 15:42:14 +02:00
COPY --chmod= 755 scripts/notify-bootc-user.sh /usr/bin/
2026-09-27 12:28:46 +02:00
COPY --chmod= 755 scripts/kanshi-autoconfig /usr/bin/kanshi-autoconfig
COPY --chmod= 755 scripts/seed-labwc-skel.sh /usr/bin/seed-labwc-skel
2026-10-03 17:05:37 +02:00
COPY --chmod= 755 scripts/labwc-appmenu /usr/bin/labwc-appmenu
2026-09-30 21:45:22 +02:00
COPY --chmod= 755 scripts/bing-wallpaper.sh /usr/bin/bing-wallpaper.sh
COPY --chmod= 755 scripts/bing-wallpaper-toggle.sh /usr/bin/bing-wallpaper-toggle.sh
2026-10-31 17:44:19 +01:00
COPY --chmod= 755 scripts/flatpak-preinstall-check.sh /usr/bin/flatpak-preinstall-check.sh
2026-09-30 21:45:22 +02:00
# Desktop-Datei fuer den Toggle (Noctalia-Launcher findet ihn als App)
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/applications/bing-wallpaper-toggle.desktop /usr/share/applications/bing-wallpaper-toggle.desktop
2026-09-30 21:45:22 +02:00
2026-10-01 21:16:47 +02:00
# User-Units (Bing-Wallpaper-Timer). --chmod: In-Image-Units muessen 644
# sein (world-writable Units warnt systemd lautstark an).
2026-10-10 17:12:40 +02:00
COPY --chmod= 0644 configs/systemd/user/bing-wallpaper.service /usr/lib/systemd/user/bing-wallpaper.service
COPY --chmod= 0644 configs/systemd/user/bing-wallpaper.timer /usr/lib/systemd/user/bing-wallpaper.timer
2026-11-08 10:18:44 +01:00
# Umbriel-Session-Target kommt mit dem Paket (/usr/lib/systemd/user/umbriel-session.target).
# Kein eigener Copy noetig.
2026-09-27 12:28:46 +02:00
2026-11-08 10:18:44 +01:00
# umbriel/kanshi-Defaults fuer neue Benutzer (Bestand bleibt via seed-labwc-skel)
2026-09-27 12:28:46 +02:00
COPY configs/skel/ /etc/skel/
2026-10-04 12:57:47 +02:00
# Verzeichnis-COPY uebernimmt Checkout-Modi; world-writable Bits entfernen
# (fuer Dateien gaelte --chmod=0644, das wuerde hier aber Dir-+x brechen)
RUN chmod -R go-w /etc/skel
2026-09-27 12:28:46 +02:00
2026-11-08 10:18:44 +01:00
# Wayland-Session kommt mit dem umbriel-nightly-Paket (/usr/share/wayland-sessions/umbriel.desktop).
# Kein eigener Copy noetig. Umbriel-Config (Stacking/Floating) wird hier kopiert.
COPY --chmod= 0644 configs/umbriel/config.toml /usr/share/umbriel/config.toml
2026-09-27 12:28:46 +02:00
2026-09-27 21:41:07 +02:00
# Fontconfig-Defaults (Noto statt DejaVu)
2026-10-31 17:44:19 +01:00
# Ziel ist /etc/fonts/conf.d: nur dieser Pfad wird von /etc/fonts/fonts.conf
# eingelesen. /usr/share/fontconfig/conf.avail ist ein Vorlagen-Verzeichnis
# (Pakete verlinken daraus selbst nach conf.d) - ein Drop-in dort ist wirkungslos.
COPY --chmod= 0644 configs/fontconfig/60-fluffy-noto.conf /etc/fonts/conf.d/60-fluffy-noto.conf
# COPY --chmod=0644 legt fehlende Parent-Dirs mit Modus 0644 an; fontconfig
# kann ein nicht durchsuchbares Verzeichnis nicht lesen.
RUN chmod 0755 /etc/fonts/conf.d
2026-09-27 21:41:07 +02:00
2026-09-27 12:28:46 +02:00
# greetd-Konfiguration (Noctalia-Greeter + tuigreet-Fallback dokumentiert)
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/greetd/config.toml /etc/greetd/config.toml
2026-09-27 12:28:46 +02:00
# Noctalia-Greeter Standardwerte (de-Tastatur etc., werden per tmpfiles
# beim Erst-Boot nach /var/lib/noctalia-greeter/greeter.toml kopiert)
2026-10-04 12:57:47 +02:00
COPY --chmod= 0644 configs/noctalia-greeter/greeter.toml.default /usr/share/noctalia-greeter/greeter.toml.default
2026-10-31 17:44:19 +01:00
# Dateiname mit zz-Prefix: tmpfiles.d verarbeitet Drop-ins lexikografisch,
# unser chown/C muss nach dem Paket-Drop-in (noctalia-greeter.conf) laufen.
COPY --chmod= 0644 configs/tmpfiles/zz-noctalia-greeter-seed.conf /usr/lib/tmpfiles.d/zz-noctalia-greeter-seed.conf
2026-09-27 12:28:46 +02:00
2026-09-27 13:21:20 +02:00
# Fail-fast + Selbstheilung: Der Session-Wrapper-Pfad wird aus dem real
# installierten Paket aufgeloest und in die greetd-Config uebernommen.
# (Terra paketiert eigenstaendig, z.B. /usr/sbin statt /usr/bin.)
# Fehlt Wrapper, D-Bus, polkit oder Session -> Build-Abbruch statt
# defektem Login-Screen.
2026-09-27 12:28:46 +02:00
RUN set -u; \
2026-09-27 18:48:10 +02:00
id greeter >/dev/null || { echo "FEHLER: Service-User greeter fehlt (21-greetd.sh pruefen)" ; exit 1; } ; \
grep -q 'pam_gnome_keyring\.so' /etc/pam.d/greetd || { echo "FEHLER: Keyring-PAM in /etc/pam.d/greetd fehlt" ; exit 1; } ; \
2026-09-30 19:09:49 +02:00
test -f /usr/lib64/security/pam_gnome_keyring.so || { echo "FEHLER: pam_gnome_keyring.so fehlt (Paket gnome-keyring-pam?)" ; exit 1; } ; \
2026-10-03 23:11:34 +02:00
test -f /usr/lib64/security/pam_fprintd.so || { echo "FEHLER: pam_fprintd.so fehlt (Paket fprintd-pam?)" ; exit 1; } ; \
2026-10-05 17:42:31 +02:00
grep -q 'pam_fprintd\.so' /etc/pam.d/system-auth || { echo "FEHLER: pam_fprintd fehlt in system-auth (authselect with-fingerprint?)" ; exit 1; } ; \
2026-10-05 18:17:42 +02:00
grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+password-auth' /etc/pam.d/greetd || { echo "FEHLER: greetd nutzt nicht password-auth (fingerprint-frei erwartet)" ; exit 1; } ; \
2026-10-05 17:42:31 +02:00
grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/greetd && { echo "FEHLER: greetd nutzt system-auth mit Fingerprint (Keyring wuerde nie entsperren)" ; exit 1; } || true; \
2026-11-08 10:18:44 +01:00
wrapper = " $( command -v start-umbriel || true ) " ; \
2026-09-27 13:21:20 +02:00
echo "Gefundener Wrapper: ${ wrapper } " ; \
2026-11-08 10:18:44 +01:00
test -n " ${ wrapper } " || { echo "FEHLER: start-umbriel nicht installiert (Terra-Repo/includepkgs pruefen)" ; exit 1; } ; \
2026-09-27 13:21:20 +02:00
sed -i "s|^command = \".*\"|command = \" ${ wrapper } \"|" /etc/greetd/config.toml; \
grep -Eq "^command = \" ${ wrapper } \"" /etc/greetd/config.toml || { echo "FEHLER: Wrapper-Pfad konnte nicht in /etc/greetd/config.toml uebernommen werden" ; exit 1; } ; \
command -v dbus-run-session >/dev/null || { echo "FEHLER: dbus-run-session fehlt" ; exit 1; } ; \
2026-10-03 23:11:34 +02:00
command -v dbus-update-activation-environment >/dev/null || { echo "FEHLER: dbus-update-activation-environment fehlt (Paket dbus-tools?)" ; exit 1; } ; \
2026-09-27 13:21:20 +02:00
test -x /usr/bin/pkexec || { echo "FEHLER: pkexec fehlt" ; exit 1; } ; \
2026-11-08 10:18:44 +01:00
test -f /usr/share/wayland-sessions/umbriel.desktop || { echo "FEHLER: umbriel-Session fehlt" ; exit 1; } ; \
2026-09-27 13:21:20 +02:00
echo "Greeter-Check OK ( ${ wrapper } )"
2026-05-01 13:35:20 +02:00
2026-05-23 11:41:07 +02:00
# =============================================================================
2026-05-31 18:11:43 +02:00
# SYSTEMD SERVICES (Modern Bootc Architecture)
2026-05-23 11:41:07 +02:00
# =============================================================================
2026-05-23 12:48:21 +02:00
# 4. Kopiere den Systemd-Service für den Erst-Boot von Flatpak
2026-10-10 17:12:40 +02:00
COPY --chmod= 0644 configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service
2026-05-23 12:48:21 +02:00
2026-05-31 18:11:43 +02:00
# 5. Aktiviere Services (Presets greifen nicht bei COPY-Dateien)
2026-09-27 12:28:46 +02:00
# HINWEIS: greetd wird bereits in 21-greetd.sh enabled; hier als
# Doku/Netz doppelt abgesichert (idempotent).
2026-05-31 18:11:43 +02:00
RUN systemctl enable \
2026-07-09 13:58:18 +00:00
# libvirtd.service \
# virtlogd.service \
2026-05-31 18:11:43 +02:00
podman.socket \
bootc-fetch-apply-updates.timer \
2026-09-27 12:28:46 +02:00
flatpak-preinstall.service \
greetd.service
2026-10-01 21:16:47 +02:00
# User-Units (Bing) liegen bereit, werden aber NICHT global aktiviert:
# Bing-Timer ist Opt-in per Launcher-App "Bing-Wallpaper an/aus".
2026-09-30 21:45:22 +02:00
2026-10-10 17:12:40 +02:00
# SELinux-Labels fuer Greeter/Skel/Sessions/Greeter-Defaults/Skripte
# (Fehler tolerieren, Labels werden beim Deployment ggf. erneut gesetzt)
2026-11-04 18:37:03 +01:00
# /etc/pam.d ist Pflicht: 21-greetd.sh materialisiert die F45-Vendor-Config
# per install/sed nach /etc; ohne Relabel kann PAM die Datei nicht lesen.
2026-11-08 10:18:44 +01:00
RUN restorecon -Rv /etc/pam.d /etc/greetd /etc/skel /usr/share/wayland-sessions /usr/share/noctalia-greeter /usr/bin/start-umbriel /usr/bin/kanshi-autoconfig /usr/bin/seed-labwc-skel /usr/bin/labwc-appmenu /usr/bin/bing-wallpaper.sh /usr/bin/bing-wallpaper-toggle.sh /usr/bin/flatpak-preinstall-check.sh 2>/dev/null || true
2026-05-23 11:41:07 +02:00
2026-10-03 23:11:34 +02:00
###############################################################################
# PRE-FINAL CLEANUP
###############################################################################
# Unerwuenschte Pakete entfernen (ABSICHTLICH hier hinten: erst nach allen
# Install-Layern, damit auch spaet hereingezogene Abhaengigkeiten erwischt
# werden). Danach 99-cleanup.sh mit autoremove + Cache-Bereinigung.
RUN --mount= type = bind,from= build-ctx,source= /build/98-remove-packages.sh,target= /tmp/98-remove-packages.sh \
--mount= type = cache,dst= /var/cache \
--mount= type = cache,dst= /var/log \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/98-remove-packages.sh
2026-08-16 11:33:04 +00:00
###############################################################################
# FINAL CLEANUP
###############################################################################
# autoremove + Cache-/Temp-Bereinigung (einmalig, am Ende aller Installs)
RUN --mount= type = bind,from= build-ctx,source= /build/99-cleanup.sh,target= /tmp/99-cleanup.sh \
--mount= type = tmpfs,dst= /tmp \
bash /tmp/99-cleanup.sh
2026-05-01 13:35:20 +02:00
###############################################################################
2026-05-23 12:48:21 +02:00
# LINTING
2026-05-01 13:35:20 +02:00
###############################################################################
2026-09-05 13:13:36 +00:00
# Wir validieren das System via bootc container lint
RUN bootc container lint