fix: greeter-tmpfiles, timer-parse, copy-perms, notify-deps

This commit is contained in:
humocs-man committed 2026-10-04 12:57:47 +02:00
1 parent 28fc45de63
commit ebb2e9d906
5 files changed
+53 -21

No files matched your search

+19 -15
View File
@@ -98,14 +98,14 @@ RUN --mount=type=bind,from=build-ctx,source=/build/50-prepare-flatpak-for-bazaar
###############################################################################
# 1. Kopiere die Filesystem-Fixes (tmpfiles.d, Vendor-Default)
COPY configs/bootc-fix.conf /usr/lib/tmpfiles.d/bootc-fix.conf
COPY --chmod=0644 configs/bootc-fix.conf /usr/lib/tmpfiles.d/bootc-fix.conf
# 1b. Container-Policy & Registry Auth für bootc
# sigstoreSigned-Pflicht für eigenes Image, Public-Registries explizit erlaubt
COPY configs/containers/policy.json /etc/containers/policy.json
COPY cosign.pub /etc/pki/containers/cosign.pub
COPY configs/auth.json /etc/containers/auth.json
COPY configs/humocs-man.yaml /etc/containers/registries.d/humocs-man.yaml
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
RUN chmod 0644 /etc/containers/policy.json /etc/pki/containers/cosign.pub && \
chmod 0600 /etc/containers/auth.json && \
@@ -113,12 +113,13 @@ RUN chmod 0644 /etc/containers/policy.json /etc/pki/containers/cosign.pub && \
python3 -m json.tool /etc/containers/auth.json > /dev/null
# 2. Kopiere die Systemd-Overrides als Vendor-Drop-ins (kein /etc/-Override im Image)
COPY configs/bootc-timer-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d/override.conf
COPY configs/bootc-override.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.service.d/override.conf
COPY configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf
# --chmod=0644: keine world-writable Units (systemd warnt sonst im Journal)
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
COPY --chmod=0644 configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf
# 2b. Kernel-Args (Bootsplash + ABM-Default, Details in der Datei)
COPY configs/kargs.toml /usr/lib/bootc/kargs.d/kargs.toml
COPY --chmod=0644 configs/kargs.toml /usr/lib/bootc/kargs.d/kargs.toml
# 3. Kopiere die Session-Helfer und Desktop-Defaults
COPY --chmod=755 scripts/notify-bootc-user.sh /usr/bin/
@@ -129,7 +130,7 @@ 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
# Desktop-Datei fuer den Toggle (Noctalia-Launcher findet ihn als App)
COPY configs/applications/bing-wallpaper-toggle.desktop /usr/share/applications/bing-wallpaper-toggle.desktop
COPY --chmod=0644 configs/applications/bing-wallpaper-toggle.desktop /usr/share/applications/bing-wallpaper-toggle.desktop
# User-Units (Bing-Wallpaper-Timer). --chmod: In-Image-Units muessen 644
# sein (world-writable Units warnt systemd lautstark an).
@@ -142,20 +143,23 @@ COPY --chmod=644 configs/systemd/user/labwc-session.target /usr/lib/systemd/user
# labwc/kanshi-Defaults fuer neue Benutzer (Bestand bleibt via seed-labwc-skel)
COPY configs/skel/ /etc/skel/
# 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
# Wayland-Session fuer Display-Manager (Greeter-Auswahl)
COPY configs/wayland-sessions/labwc.desktop /usr/share/wayland-sessions/labwc.desktop
COPY --chmod=0644 configs/wayland-sessions/labwc.desktop /usr/share/wayland-sessions/labwc.desktop
# Fontconfig-Defaults (Noto statt DejaVu)
COPY configs/fontconfig/60-fluffy-noto.conf /usr/share/fontconfig/conf.d/60-fluffy-noto.conf
COPY --chmod=0644 configs/fontconfig/60-fluffy-noto.conf /usr/share/fontconfig/conf.d/60-fluffy-noto.conf
# greetd-Konfiguration (Noctalia-Greeter + tuigreet-Fallback dokumentiert)
COPY configs/greetd/config.toml /etc/greetd/config.toml
COPY --chmod=0644 configs/greetd/config.toml /etc/greetd/config.toml
# Noctalia-Greeter Standardwerte (de-Tastatur etc., werden per tmpfiles
# beim Erst-Boot nach /var/lib/noctalia-greeter/greeter.toml kopiert)
COPY configs/noctalia-greeter/greeter.toml.default /usr/share/noctalia-greeter/greeter.toml.default
COPY configs/tmpfiles/noctalia-greeter-seed.conf /usr/lib/tmpfiles.d/noctalia-greeter-seed.conf
COPY --chmod=0644 configs/noctalia-greeter/greeter.toml.default /usr/share/noctalia-greeter/greeter.toml.default
COPY --chmod=0644 configs/tmpfiles/noctalia-greeter-seed.conf /usr/lib/tmpfiles.d/noctalia-greeter-seed.conf
# Fail-fast + Selbstheilung: Der Session-Wrapper-Pfad wird aus dem real
# installierten Paket aufgeloest und in die greetd-Config uebernommen.