diff --git a/install/config/enable-services.sh b/install/config/enable-services.sh index 8df4f171..2a1698e5 100644 --- a/install/config/enable-services.sh +++ b/install/config/enable-services.sh @@ -7,5 +7,10 @@ systemctl enable linux-modules-cleanup.service systemctl enable docker.socket systemctl enable systemd-resolved.service systemctl enable NetworkManager.service +# Don't let network-online.target (pulled in by cups-browsed) hold up +# graphical.target waiting for DHCP/Wi-Fi association. Nothing in the session +# needs to block on the network. Mirrors the systemd-networkd-wait-online mask +# in install/hardware/network.sh. +systemctl mask NetworkManager-wait-online.service systemctl enable power-profiles-daemon.service systemctl enable sddm.service diff --git a/migrations/1784568652.sh b/migrations/1784568652.sh new file mode 100644 index 00000000..3ad97921 --- /dev/null +++ b/migrations/1784568652.sh @@ -0,0 +1,15 @@ +echo "Stop waiting for the network before showing the desktop" + +as_root() { + if (( EUID == 0 )); then + "$@" + else + sudo "$@" + fi +} + +# graphical.target was gated on network-online.target (cups-browsed orders +# itself after it), so the desktop waited for DHCP/Wi-Fi association at boot. +# Nothing in the session needs to block on the network; mask the wait so +# network-online no longer delays boot. Mirrors the systemd-networkd variant. +as_root systemctl mask NetworkManager-wait-online.service >/dev/null 2>&1 || true