feat(installer): simple network picker screen after language selection
Replace the complex anaconda NetworkStandaloneSpoke with a minimal post-language "Connexion à Internet" screen: one list of detected Wi-Fi networks plus Ethernet, click a network, enter the password, done. Hostname typed there is kept (written to /tmp/fws-hostname and prefilled into the User spoke via the anaconda PKGBUILD patch), and the chosen Wi-Fi profile is copied to the installed system so it works at first boot without re-entering the password.
This commit is contained in:
4 files changed
+745
-5
No files matched your search
@@ -136,6 +136,21 @@ if [ -n "$SRC_KERN" ]; then
|
||||
else
|
||||
echo "[FWS] AVERTISSEMENT : noyau vmlinuz-linux introuvable sur le média"
|
||||
fi
|
||||
|
||||
# --- Wi-Fi choisi sur l'écran « Connexion Internet » → système installé -----
|
||||
# La connexion est faite par NetworkManager sur le LIVE (spoke fws_network) :
|
||||
# son profil vit dans /etc/NetworkManager/system-connections du live — un
|
||||
# overlay TEMPORAIRE que le payload LiveOS (copie du squashfs) ne recopie PAS.
|
||||
# Si l'utilisateur s'est connecté à un Wi-Fi (marqueur /tmp/fws-keep-wifi posé
|
||||
# par le spoke), on copie donc les profils NM du live vers la cible : le Wi-Fi
|
||||
# fonctionnera au 1er démarrage du système installé SANS ressaisie du mot de
|
||||
# passe (et le %post chrooté, qui tourne sur la pile réseau du live, a déjà pu
|
||||
# installer le bureau).
|
||||
if [ -f /tmp/fws-keep-wifi ]; then
|
||||
install -d -m 700 "$SYSROOT/etc/NetworkManager/system-connections"
|
||||
cp -a /etc/NetworkManager/system-connections/. \
|
||||
"$SYSROOT/etc/NetworkManager/system-connections/" 2>/dev/null || true
|
||||
fi
|
||||
%end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user