fix(installer): retry the desktop install until the network is really up

When the desktop packages could not be installed during %post, the
first-boot service fws-desktop-finalize was meant to finish the job. It
was ordered after NetworkManager.service only, so it started before any
connection existed, pacman -Syy failed, and being a oneshot it never ran
again: the machine stayed on a console login (seen with i3 on 0.8.1).

The service now waits for network-online.target and restarts every
minute on failure, without a start limit, until the desktop is installed
and the login screen comes up.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Fable 5.1 committed 2026-11-11 19:10:40 +01:00
1 parent caa0b17262
commit deea19ab42
1 file changed
+9 -2
@@ -648,13 +648,20 @@ RETRYEOF
Description=FWS - Finalisation du bureau au premier demarrage
# Ne fait rien si le bureau a ete installe correctement pendant l'install.
ConditionPathExists=/var/lib/fws/desktop-failed
After=NetworkManager.service systemd-resolved.service
Wants=NetworkManager.service
# network-online : ordonne apres NetworkManager seulement, le service partait
# avant toute connexion, pacman -Syy echouait, et comme un oneshot ne
# reessaie pas, le systeme restait en console au premier demarrage. Il attend
# maintenant une connexion et reessaie toutes les minutes tant que ca echoue.
After=network-online.target NetworkManager.service systemd-resolved.service
Wants=network-online.target NetworkManager.service
StartLimitIntervalSec=0
[Service]
Type=oneshot
ExecStart=/usr/local/bin/fws-desktop-retry --auto
TimeoutStartSec=0
Restart=on-failure
RestartSec=60
[Install]
WantedBy=multi-user.target