Tune main for Framework 13 AMD and harden update flow
- Add kernel args, sysctl, NetworkManager/WirePlumber and boltd tuning - Keep NVMe APST at the kernel default - Skip systemd-remount-fs on ostree/bootc - Harden flatpak first-boot install with timeout and verification - Harden bootc update notification (DNS wait, retries, per-user timeouts) - Add locale/network/btrfs presets and tolerant switch to the ISO kickstart
This commit is contained in:
1 parent
e44b7dfeff
commit
a898e381d6
14 files changed
+398
-332
No files matched your search
+45
-1
@@ -91,9 +91,53 @@ RUN chmod 0644 /etc/containers/policy.json /etc/pki/containers/cosign.pub && \
|
||||
# --chmod=0644: schliesst world-writable Warnungen von systemd aus (0644 statt 0666 durch Checkout-umask)
|
||||
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
|
||||
# boltd (Thunderbolt): Framework-NHI-IDs fehlen in bolts Liste -> kosmetische
|
||||
# "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
|
||||
# systemd-remount-fs scheitert auf bootc/composefs deterministisch; die
|
||||
# Mounts kommen bereits mit den richtigen fstab-Optionen hoch.
|
||||
COPY --chmod=0644 configs/remount-fs-ostree-skip.conf /usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf
|
||||
|
||||
# 3. Kopiere das Benachrichtigungs-Skript
|
||||
# 2b. Kernel-Args (Bootsplash + Hardware-Tuning, Details in der Datei)
|
||||
COPY --chmod=0644 configs/kargs.toml /usr/lib/bootc/kargs.d/kargs.toml
|
||||
|
||||
# 2c. Sysctl-Tuning (NVMe/SSD-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
|
||||
|
||||
# 2d. Drop-in-Verzeichnisse explizit durchsuchbar halten. BuildKit wendet
|
||||
# --chmod auch auf implizit erzeugte Parent-Dirs an (seit 0.21); ohne x-Bit
|
||||
# werden die Overrides von nicht-root Loadern still ignoriert. systemd (root)
|
||||
# liest sie zwar, aber 0755 ist die robuste/eindeutige Variante.
|
||||
# Die *.conf selbst duerfen NICHT world-writable sein (systemd warnt sonst).
|
||||
RUN install -d -m 0755 /usr/lib/bootc/kargs.d && \
|
||||
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/boltd.service.d \
|
||||
/usr/lib/systemd/system/systemd-remount-fs.service.d \
|
||||
/usr/lib/bootc/kargs.d \
|
||||
/usr/lib/sysctl.d \
|
||||
/usr/lib/NetworkManager/conf.d \
|
||||
/usr/share/wireplumber/wireplumber.conf.d && \
|
||||
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/boltd.service.d/log-level.conf \
|
||||
/usr/lib/systemd/system/systemd-remount-fs.service.d/skip-on-ostree.conf \
|
||||
/usr/lib/bootc/kargs.d/kargs.toml \
|
||||
/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
|
||||
|
||||
# 3. Kopiere die Hilfsskripte
|
||||
COPY --chmod=755 scripts/notify-bootc-user.sh /usr/bin/
|
||||
COPY --chmod=755 scripts/flatpak-preinstall-check.sh /usr/bin/
|
||||
|
||||
# =============================================================================
|
||||
# SYSTEMD SERVICES (Modern Bootc Architecture)
|
||||
|
||||
Reference in new issue
Block a user