From 2f8bf49626fe83f8aa783fcf84c32f4446d14c7c Mon Sep 17 00:00:00 2001 From: Gunnar Date: Tue, 10 Nov 2026 20:20:03 +0100 Subject: [PATCH] feat: install bolt and enable bolt.service for Thunderbolt dock authorization --- Containerfile | 11 ++++++----- build/30-virt.sh | 5 +++-- .../log-level.conf | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) rename configs/systemd/system/{boltd.service.d => bolt.service.d}/log-level.conf (79%) diff --git a/Containerfile b/Containerfile index dfe750d..9866c6f 100644 --- a/Containerfile +++ b/Containerfile @@ -91,9 +91,9 @@ 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 +# bolt (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 +COPY --chmod=0644 configs/systemd/system/bolt.service.d/log-level.conf /usr/lib/systemd/system/bolt.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 @@ -119,7 +119,7 @@ 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/bolt.service.d \ /usr/lib/systemd/system/systemd-remount-fs.service.d \ /usr/lib/bootc/kargs.d \ /usr/lib/sysctl.d \ @@ -128,7 +128,7 @@ RUN install -d -m 0755 /usr/lib/bootc/kargs.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/bolt.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 \ @@ -152,7 +152,8 @@ RUN systemctl enable \ # virtlogd.service \ podman.socket \ bootc-fetch-apply-updates.timer \ - flatpak-preinstall.service + flatpak-preinstall.service \ + bolt.service ############################################################################### # FINAL CLEANUP diff --git a/build/30-virt.sh b/build/30-virt.sh index f83bf45..526ccbc 100755 --- a/build/30-virt.sh +++ b/build/30-virt.sh @@ -17,12 +17,13 @@ dnf5 install -y \ fuse-libs \ fuse3 \ jq \ - libnotify + libnotify \ + bolt # Soft-Check: --skip-unavailable darf keine stillen Luecken reissen. # Fehlende Pakete werden geloggt, brechen den Build aber nicht ab # (bewusste Toleranz fuer Umbenennungen/Repo-Hickups). -for pkg in distrobox toolbox libva-utils micro fuse fuse-libs fuse3 jq libnotify; do +for pkg in distrobox toolbox libva-utils micro fuse fuse-libs fuse3 jq libnotify bolt; do if ! rpm -q "${pkg}" >/dev/null 2>&1; then echo "WARN: ${pkg} nicht installiert (Repo-/Umbenennungsproblem?)" >&2 fi diff --git a/configs/systemd/system/boltd.service.d/log-level.conf b/configs/systemd/system/bolt.service.d/log-level.conf similarity index 79% rename from configs/systemd/system/boltd.service.d/log-level.conf rename to configs/systemd/system/bolt.service.d/log-level.conf index 4aaa675..b5f5e52 100644 --- a/configs/systemd/system/boltd.service.d/log-level.conf +++ b/configs/systemd/system/bolt.service.d/log-level.conf @@ -1,5 +1,5 @@ [Service] -# boltd meldet "failed to determine if uid is stable: unknown NHI PCI id" +# bolt (boltd) meldet "failed to determine if uid is stable: unknown NHI PCI id" # fuer Frameworks Pink-Sardine-USB4-Controller (0x1668/0x1669), weil diese # IDs in bolts interner NHI-Liste fehlen. Funktionell irrelevant: bei # aktivem IOMMU werden Geraete automatisch mit iommu-Policy enrolled und