From d9b5367f76a4d327bb440486cd8318272f0aa741 Mon Sep 17 00:00:00 2001 From: gunnar Date: Sun, 31 May 2026 18:11:43 +0200 Subject: [PATCH] fix: replace non-functional systemd presets with explicit systemctl enable Presets only apply during package installation, not when files are COPY'd into the image. This caused libvirtd, podman.socket, bootc-fetch-apply-updates.timer, and flatpak-preinstall.service to remain disabled on first boot. --- Containerfile | 11 ++++++++--- configs/99-custom.preset | 7 ------- 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 configs/99-custom.preset diff --git a/Containerfile b/Containerfile index 51b3ce9..552f30b 100644 --- a/Containerfile +++ b/Containerfile @@ -85,14 +85,19 @@ COPY configs/bootc-override.conf /etc/systemd/system/bootc-fetch-apply-updates.s COPY --chmod=755 scripts/notify-bootc-user.sh /usr/bin/ # ============================================================================= -# SYSTEMD SERVICES & PRESETS (Modern Bootc Architecture) +# SYSTEMD SERVICES (Modern Bootc Architecture) # ============================================================================= # 4. Kopiere den Systemd-Service für den Erst-Boot von Flatpak COPY configs/flatpak-preinstall.service /usr/lib/systemd/system/flatpak-preinstall.service -# 5. Kopiere die Systemd Presets (Aktiviert flathub-preinstall, libvirtd, etc. ohne /etc-Verschmutzung) -COPY configs/99-custom.preset /usr/lib/systemd/system-preset/99-custom.preset +# 5. Aktiviere Services (Presets greifen nicht bei COPY-Dateien) +RUN systemctl enable \ + libvirtd.service \ + virtlogd.service \ + podman.socket \ + bootc-fetch-apply-updates.timer \ + flatpak-preinstall.service ############################################################################### # LINTING diff --git a/configs/99-custom.preset b/configs/99-custom.preset deleted file mode 100644 index 12fec67..0000000 --- a/configs/99-custom.preset +++ /dev/null @@ -1,7 +0,0 @@ -enable libvirtd.service -enable virtlogd.service -enable podman.socket -enable bluetooth.service -enable plasma-setup.service -enable bootc-fetch-apply-updates.timer -enable flatpak-preinstall.service