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
+51 -19

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.
+3 -1
View File
@@ -20,6 +20,8 @@ dnf5 install -y \
micro \
fuse \
fuse-libs \
fuse3
fuse3 \
jq \
libnotify
dnf5 clean all
+1 -2
View File
@@ -1,8 +1,7 @@
[Timer]
# Leeren der Standardwerte
# Leeren der Standardwerte (nur Listen-Keys duerfen leer zugewiesen werden)
OnBootSec=
OnUnitInactiveSec=
RandomizedDelaySec=
OnCalendar=
# Prüfe jeden Tag um 20:00 Uhr
@@ -1,3 +1,8 @@
# Verzeichnis gehoert dem Greeter: Er muss sync.toml schreiben koennen
# (sonst: "greetd user needs write access", siehe Journal).
# Das Paket legt das Verzeichnis per eigenem tmpfiles.d als root an;
# diese Regel biegt Owner bei jedem Boot deterministisch auf greeter.
d /var/lib/noctalia-greeter 0750 greeter greeter -
# Noctalia-Greeter Standardwerte seeden (nur Erst-Boot, Hand-Edits bleiben).
# Das Paket legt das Verzeichnis bereits per tmpfiles.d an; diese Regel
# kopiert zusaetzlich unsere de-Defaults, falls noch keine greeter.toml da ist.
+23 -1
View File
@@ -10,15 +10,32 @@ SYSTEMCTL="/usr/bin/systemctl"
TAG="bootc-timer"
have() { command -v "$1" >/dev/null 2>&1; }
# Harte Abhaengigkeiten pruefen (jq für bootc-JSON, notify-send für Desktop-Dialog)
# Fehlt etwas, ist das ein Build-Fehler (Paket fehlt im Image) – klar loggen statt kryptisch crashen.
if ! have jq; then
$LOGGER -t "$TAG" "FEHLER: 'jq' fehlt im Image (notify-bootc-user.sh braucht es). Abbruch."
exit 1
fi
# =============================================================================
# Flatpaks im Hintergrund aktualisieren
# Flatpaks im Hintergrund aktualisieren (nur wenn flatpak vorhanden)
# =============================================================================
if have "$FLATPAK"; then
$LOGGER -t "$TAG" "Suche nach Flatpak-Updates..."
$FLATPAK update -y --noninteractive || $LOGGER -t "$TAG" "Flatpak-Update fehlgeschlagen oder keine Updates vorhanden."
else
$LOGGER -t "$TAG" "Flatpak nicht installiert, ueberspringe Flatpak-Update."
fi
# =============================================================================
# 1. Bootc Upgrade ausfuehren
# =============================================================================
if ! have "$BOOTC"; then
$LOGGER -t "$TAG" "FEHLER: '$BOOTC' fehlt im Image. Abbruch."
exit 1
fi
$LOGGER -t "$TAG" "Suche nach System-Updates (bootc)..."
$BOOTC upgrade || true
@@ -50,6 +67,11 @@ fi
$LOGGER -t "$TAG" "Sende Benachrichtigung an User-ID: $USER_ID"
if ! have "$NOTIFY"; then
$LOGGER -t "$TAG" "Update bereit, aber 'notify-send' (libnotify) fehlt im Image – keine Desktop-Benachrichtigung moeglich."
exit 0
fi
# =============================================================================
# 4. Benachrichtigung senden
# =============================================================================