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.
This commit is contained in:
+8
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user