feat(installer): step-by-step wizard with next/back navigation

Anaconda is a hub & spoke installer: a MENU where the user picks which screen
to enter, in any order. That assumes you already know what you are doing --
the opposite of what FWS is for. The Summary hub no longer shows its grid of
tiles; it chains its screens one by one, like the Windows installer:

  Language -> Internet -> Date & time -> Destination -> Desktop -> User
  -> Root password -> Summary -> Installation

Consequences addressed here:

- The desktop default was "command line only", on a screen that was neither
  mandatory nor visited by most users: the installation SUCCEEDED but left a
  console-only system -- a black screen on reboot, experienced as "the OS does
  not install". The screen is now part of the flow and defaults to KDE Plasma.
- Navigation was inconsistent: hub screens carried a single "Done" button in
  the TOP LEFT while standalone screens have their buttons at the bottom right.
  That button is moved into a bottom-right bar identical to the standalone one,
  renamed "Suivant", and joined by a "Précédent" button.
- Going back works from the last screen all the way to the first, including out
  of the hub, so a wrong language -- hence a wrong keyboard layout -- is no
  longer final. Leaving the hub and coming back would normally rebuild a fresh
  hub and lose every entry, so the hub instance is cached and reused.
- Going back applies nothing: the Destination screen's apply() reconfigures
  partitioning.
- Screens now slide horizontally, right to left going forward.
- The keyboard chosen on the first screen is applied to the running X server
  with setxkbmap. Anaconda 45 only pushes it to systemd-localed, which expects
  a compositor to listen -- there is none under the live session's Openbox/Xorg,
  so the whole installer stayed in QWERTY US and Wi-Fi and account passwords
  were typed blind.

The redundant screens (second keyboard choice, Anaconda's own network screen,
language support) are removed through Anaconda's supported "hidden_spokes"
option rather than by patching it.

Everything is behind try/except: should any of it fail, the classic hub comes
back and the installation stays possible.

Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
nocode committed 2026-09-09 10:08:19 +02:00
1 parent 5669dbdd66
commit c2859aace7
8 files changed
+706 -4

No files matched your search

@@ -0,0 +1,24 @@
# FWS — écrans d'Anaconda retirés du parcours d'installation.
#
# « hidden_spokes » est le mécanisme PRÉVU par Anaconda pour masquer un écran
# (pyanaconda/ui/common.py, collect_spokes) : le spoke n'est ni instancié ni
# affiché. Aucun patch du paquet anaconda n'est nécessaire, et les fichiers de
# /etc/anaconda/conf.d/ sont lus APRÈS le profil produit → ils gagnent.
#
# KeyboardSpoke : le 2e choix de clavier (« dispositions supplémentaires »).
# La disposition est déjà fixée par la langue/région choisie
# au TOUT PREMIER écran, et appliquée immédiatement au live
# (cf. fws_wizard.py) → ce second écran ne fait que semer le
# doute. Retiré à la demande.
# NetworkSpoke : doublon de l'écran « Connexion à Internet » de FWS
# (fws_network.py, 2e étape). L'écran d'Anaconda est celui
# qui avait été jugé illisible — dans un parcours linéaire il
# serait IMPOSÉ à l'utilisateur.
# LangsupportSpoke: « prise en charge des langues » = paquets de langue à
# installer. Sans effet ici : le payload LiveOS recopie une
# image, il n'installe aucun paquet.
[User Interface]
hidden_spokes =
KeyboardSpoke
NetworkSpoke
LangsupportSpoke