refactor: Review-Funde ausmerzen (Timeouts, atomar, Seed-Helfer, Asserts)
This commit is contained in:
1 parent
d2d686c7a3
commit
6a95ff6cef
5 files changed
+40
-10
No files matched your search
+10
-8
@@ -113,7 +113,9 @@ 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)
|
||||
# --chmod=0644: keine world-writable Units (systemd warnt sonst im Journal)
|
||||
# --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).
|
||||
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
|
||||
@@ -134,12 +136,12 @@ COPY --chmod=0644 configs/applications/bing-wallpaper-toggle.desktop /usr/share/
|
||||
|
||||
# User-Units (Bing-Wallpaper-Timer). --chmod: In-Image-Units muessen 644
|
||||
# sein (world-writable Units warnt systemd lautstark an).
|
||||
COPY --chmod=644 configs/systemd/user/bing-wallpaper.service /usr/lib/systemd/user/bing-wallpaper.service
|
||||
COPY --chmod=644 configs/systemd/user/bing-wallpaper.timer /usr/lib/systemd/user/bing-wallpaper.timer
|
||||
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
|
||||
# Session-Target: zieht graphical-session.target hoch (Details in der Datei).
|
||||
# Braucht kein enable (wird aus dem labwc-Autostart gestartet, kein [Install]
|
||||
# noetig). --chmod wie oben: 644, keine world-writable Units.
|
||||
COPY --chmod=644 configs/systemd/user/labwc-session.target /usr/lib/systemd/user/labwc-session.target
|
||||
COPY --chmod=0644 configs/systemd/user/labwc-session.target /usr/lib/systemd/user/labwc-session.target
|
||||
|
||||
# labwc/kanshi-Defaults fuer neue Benutzer (Bestand bleibt via seed-labwc-skel)
|
||||
COPY configs/skel/ /etc/skel/
|
||||
@@ -190,7 +192,7 @@ RUN set -u; \
|
||||
# =============================================================================
|
||||
|
||||
# 4. Kopiere den Systemd-Service für den Erst-Boot von Flatpak
|
||||
COPY --chmod=644 configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service
|
||||
COPY --chmod=0644 configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service
|
||||
|
||||
# 5. Aktiviere Services (Presets greifen nicht bei COPY-Dateien)
|
||||
# HINWEIS: greetd wird bereits in 21-greetd.sh enabled; hier als
|
||||
@@ -206,9 +208,9 @@ RUN systemctl enable \
|
||||
# User-Units (Bing) liegen bereit, werden aber NICHT global aktiviert:
|
||||
# Bing-Timer ist Opt-in per Launcher-App "Bing-Wallpaper an/aus".
|
||||
|
||||
# SELinux-Labels fuer Greeter/Skel/Sessions (Fehler tolerieren, Labels
|
||||
# werden beim Deployment ggf. erneut gesetzt)
|
||||
RUN restorecon -Rv /etc/greetd /etc/skel /usr/share/wayland-sessions 2>/dev/null || true
|
||||
# SELinux-Labels fuer Greeter/Skel/Sessions/Greeter-Defaults/Skripte
|
||||
# (Fehler tolerieren, Labels werden beim Deployment ggf. erneut gesetzt)
|
||||
RUN restorecon -Rv /etc/greetd /etc/skel /usr/share/wayland-sessions /usr/share/noctalia-greeter /usr/bin/noctalia-greeter-session /usr/bin/kanshi-autoconfig /usr/bin/seed-labwc-skel /usr/bin/labwc-appmenu /usr/bin/bing-wallpaper.sh /usr/bin/bing-wallpaper-toggle.sh 2>/dev/null || true
|
||||
|
||||
###############################################################################
|
||||
# PRE-FINAL CLEANUP
|
||||
|
||||
Reference in new issue
Block a user