install: centralize service enablement

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent 7ef5bc56fd
commit e393a3a836
2 changed files with 15 additions and 17 deletions
+11 -12
View File
@@ -1,12 +1,11 @@
# _only variant skips --now to avoid starting iwd/docker/power-profiles-daemon # Enable services only. Installs are followed by reboot, so don't start/reload
# during install (existing iwd would be interrupted; the others should defer # daemons mid-install. UFW and hardware-gated services stay in their own scripts.
# to first boot). sddm, ufw, and hardware-gated services stay in their own systemctl enable bluetooth.service
# scripts. systemctl enable cups.service
chrootable_systemctl_enable bluetooth.service systemctl enable cups-browsed.service
chrootable_systemctl_enable cups.service systemctl enable avahi-daemon.service
chrootable_systemctl_enable cups-browsed.service systemctl enable linux-modules-cleanup.service
chrootable_systemctl_enable avahi-daemon.service systemctl enable docker.socket
chrootable_systemctl_enable linux-modules-cleanup.service systemctl enable NetworkManager.service
chrootable_systemctl_enable_only docker.socket systemctl enable power-profiles-daemon.service
chrootable_systemctl_enable_only iwd.service systemctl enable sddm.service
chrootable_systemctl_enable_only power-profiles-daemon.service
+4 -5
View File
@@ -1,7 +1,6 @@
# Ensure NetworkManager will be started # NetworkManager enablement is centralized in enable-services.sh.
sudo systemctl enable NetworkManager.service systemctl disable iwd.service 2>/dev/null || true
sudo systemctl disable iwd.service 2>/dev/null || true
# Prevent systemd-networkd-wait-online timeout on boot # Prevent systemd-networkd-wait-online timeout on boot
sudo systemctl disable systemd-networkd-wait-online.service systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service systemctl mask systemd-networkd-wait-online.service