chore(merge): bring fix/installer-wizard up to date with Main
Main replaced WinBoat with PacManager 1.6.2 (fetched from the public Gitea, installed under /opt and shipped in the live image) and added the install progress steps, the Vulkan-per-GPU fix and the default emoji font. This branch keeps everything that is specific to it: Intel RST/VMD handling (fws-intel-rst, --no-nvram in the kickstart and fws-grub-finalize, the ESP lookup fix), the Broadcom wl driver, fws-bugreport and the step-by-step wizard. Where the two sides disagreed on PacManager, Main wins: the vendored 1.4.3 tarball, the FWS launcher and the target-only install block (build.sh and kickstart) are dropped, since the package now ships in packages.x86_64 and the LiveOS payload copies it to the target. Launchers call PacManager, the binary Main's package exposes on PATH.
This commit is contained in:
37 files changed
+1836
-258
No files matched your search
@@ -133,6 +133,9 @@ bootloader --disabled
|
||||
# pacman, choix de bureau écrit par l'addon de sélection).
|
||||
# ============================================================================
|
||||
%post --nochroot --log=/tmp/fws-post-nochroot.log
|
||||
# FWS-TITLE: Préparation de l'installation (live)
|
||||
# Écran de progression : chaque phase publie son avancement (fws-install-step),
|
||||
# l'installeur affiche le script en cours, ce qu'il fait et un pourcentage.
|
||||
set -x
|
||||
|
||||
# Selon la version d'Anaconda la cible est sous /mnt/sysroot (récent) ou
|
||||
@@ -224,6 +227,23 @@ if [ -f /tmp/fws-keep-wifi ]; then
|
||||
cp -a /etc/NetworkManager/system-connections/. \
|
||||
"$SYSROOT/etc/NetworkManager/system-connections/" 2>/dev/null || true
|
||||
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
|
||||
|
||||
fws-install-step 6 "Système de base préparé — configuration"
|
||||
%end
|
||||
|
||||
|
||||
@@ -233,7 +253,9 @@ fi
|
||||
# Log persistant : /var/log/fws-post.log sur le système installé.
|
||||
# ============================================================================
|
||||
%post --log=/var/log/fws-post.log
|
||||
# FWS-TITLE: Configuration du système installé
|
||||
set -x
|
||||
fws-install-step 8 "Nettoyage des résidus du live"
|
||||
|
||||
# --- 0) initramfs PROPRE, AVANT TOUT pacman — L'ORDRE COMPTE (vu en réel) ----
|
||||
# Le live fournit /etc/mkinitcpio.d/linux.preset = preset « archiso » (pointe
|
||||
@@ -320,6 +342,8 @@ rm -f /etc/systemd/system/dbus-org.freedesktop.network1.service \
|
||||
/etc/systemd/system/sockets.target.wants/pcscd.socket \
|
||||
/etc/systemd/system/sound.target.wants/livecd-alsa-unmuter.service 2>/dev/null || true
|
||||
|
||||
fws-install-step 14 "Construction de l'initramfs"
|
||||
|
||||
# --- 2) mkinitcpio : noyau (rattrapage) + génération finale -----------------
|
||||
# mkinitcpio exige un noyau lisible : s'il manque (rattrapage de copie raté
|
||||
# dans le %post --nochroot), on tente de l'installer par pacman (réseau du
|
||||
@@ -344,6 +368,8 @@ else
|
||||
echo "[FWS] CRITIQUE : toujours aucun noyau — initramfs NON généré, le disque NE BOOTERA PAS."
|
||||
fi
|
||||
|
||||
fws-install-step 22 "Installation de GRUB"
|
||||
|
||||
# --- 3) GRUB installé à la main (cf. bootloader --disabled) ------------------
|
||||
install_grub() {
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
@@ -456,6 +482,8 @@ fi
|
||||
# d'activation n'est créé qu'ici, dans le système installé).
|
||||
systemctl enable fws-grub-finalize.service || true
|
||||
|
||||
fws-install-step 28 "Clavier et langue du système"
|
||||
|
||||
# --- 3bis) Clavier (X11) + LOCALE --------------------------------------------
|
||||
# CLAVIER : Anaconda passe par localed et n'écrit pas fiablement la disposition X
|
||||
# sur la CIBLE → SDDM / sessions X en QWERTY US. On CALCULE la disposition CHOISIE
|
||||
@@ -494,6 +522,8 @@ if [ -n "$FWSLANG" ]; then
|
||||
locale-gen || echo "[FWS] locale-gen a échoué pour $FWSLANG"
|
||||
fi
|
||||
|
||||
fws-install-step 32 "Installation du bureau (pacman)"
|
||||
|
||||
# --- 4) Bureau choisi : pacman -S du DE (non bloquant si pas de réseau) -------
|
||||
DESK="cli"
|
||||
[ -f /tmp/fws-desktop ] && DESK="$(tr -d '[:space:]' < /tmp/fws-desktop)"
|
||||
@@ -516,18 +546,21 @@ case "$DESK" in
|
||||
# (fws-setup-hardware les re-propose ensuite en --needed : sans effet
|
||||
# s'ils sont déjà là, filet de secours sinon).
|
||||
xfce) PKGS="xfce4 xfce4-goodies sddm noto-fonts pipewire pipewire-pulse wireplumber pavucontrol"; DM="sddm" ;;
|
||||
hyprland) PKGS="hyprland kitty wofi waybar sddm noto-fonts dolphin kio-extras udisks2 hyprlock grim slurp wl-clipboard playerctl mako libnotify polkit-gnome network-manager-applet xdg-desktop-portal-hyprland ttf-nerd-fonts-symbols pipewire pipewire-alsa pipewire-pulse wireplumber pavucontrol bluez bluez-utils blueman"; DM="sddm" ;;
|
||||
hyprland) PKGS="hyprland kitty wofi waybar swaybg sddm noto-fonts dolphin kio-extras udisks2 hyprlock grim slurp wl-clipboard playerctl mako libnotify polkit-gnome network-manager-applet xdg-desktop-portal-hyprland ttf-nerd-fonts-symbols pipewire pipewire-alsa pipewire-pulse wireplumber pavucontrol bluez bluez-utils blueman"; DM="sddm" ;;
|
||||
# i3 : session X11 → COMPATIBLE VR (SteamVR ne marche pas sous Wayland).
|
||||
# xorg-server est requis (SDDM ne le tire pas) ; maim+xclip = captures X11,
|
||||
# dunst = notifications X11 (équivalent de mako), i3lock = verrouillage.
|
||||
# fws-vr-setup (Super+Shift+V ou menu) installe les drivers du casque.
|
||||
i3) PKGS="i3-wm i3lock xorg-server polybar picom rofi kitty dolphin kio-extras udisks2 sddm noto-fonts ttf-nerd-fonts-symbols maim xclip dunst libnotify polkit-gnome network-manager-applet playerctl brightnessctl pipewire pipewire-alsa pipewire-pulse wireplumber pavucontrol bluez bluez-utils blueman"; DM="sddm" ;;
|
||||
i3) PKGS="i3-wm i3lock xorg-server polybar picom feh rofi kitty dolphin kio-extras udisks2 sddm noto-fonts ttf-nerd-fonts-symbols maim xclip dunst libnotify polkit-gnome network-manager-applet playerctl brightnessctl pipewire pipewire-alsa pipewire-pulse wireplumber pavucontrol bluez bluez-utils blueman"; DM="sddm" ;;
|
||||
cli|*) PKGS="" ;;
|
||||
esac
|
||||
# Navigateur de base ajouté DÈS QU'un bureau est choisi (jamais en CLI).
|
||||
# + python-gobject : fenêtre de bienvenue fws-hello (GTK3 vient avec Firefox)
|
||||
# + pacman-contrib : checkupdates/paccache (indicateur de MàJ + fws-update)
|
||||
[ -n "$PKGS" ] && PKGS="$PKGS firefox python-gobject pacman-contrib"
|
||||
# + noto-fonts-emoji : police emoji par défaut, dans la MÊME transaction que le
|
||||
# bureau (règle fontconfig : etc/fonts/conf.d/99-fws-emoji.conf) — sans elle,
|
||||
# les emoji des notifications/menus s'affichent en carrés vides.
|
||||
[ -n "$PKGS" ] && PKGS="$PKGS firefox python-gobject pacman-contrib noto-fonts-emoji"
|
||||
if [ -n "$PKGS" ]; then
|
||||
pacman-key --init &>/dev/null || true
|
||||
pacman-key --populate archlinux &>/dev/null || true
|
||||
@@ -755,35 +788,14 @@ MOTD
|
||||
fi
|
||||
fi
|
||||
|
||||
# --- 4ter bis) PacManager : le gestionnaire de paquets graphique de FWS ------
|
||||
# Il n'est PAS dans packages.x86_64, donc absent du live : sur un système qu'on
|
||||
# s'apprête à remplacer, un gestionnaire de paquets ne sert à rien. build.sh
|
||||
# dépose son .pkg dans l'image et il est installé ICI, dans la cible seulement.
|
||||
# Conditionné à un bureau : c'est une application graphique, elle n'a aucun
|
||||
# moyen d'être lancée sur une install « ligne de commande ».
|
||||
if [ "$DESK" != "cli" ]; then
|
||||
_PM_PKG="$(ls /usr/local/share/fws/packages/fws-pacmanage-*.pkg.tar.* 2>/dev/null | head -1)"
|
||||
if [ -n "$_PM_PKG" ]; then
|
||||
# « -U » va chercher qt6-base sur le réseau ; avec un bureau KDE il est
|
||||
# déjà là. Non bloquant : pas de PacManager n'est pas une install ratée.
|
||||
if pacman -U --noconfirm "$_PM_PKG"; then
|
||||
echo "[FWS] PacManager installé"
|
||||
else
|
||||
echo "[FWS] PacManager NON installé (réseau, ou dépendance qt6-base absente)"
|
||||
fi
|
||||
else
|
||||
echo "[FWS] paquet PacManager absent de l'image (build.sh ne l'a pas embarqué)"
|
||||
fi
|
||||
fi
|
||||
# Le .pkg ne doit pas rester sur le disque de l'utilisateur.
|
||||
rm -rf /usr/local/share/fws/packages
|
||||
fws-install-step 62 "Bureau installé — pilotes et pile matérielle"
|
||||
|
||||
# --- 4quater) ADN FWS : détection matériel + drivers + stack « Windows » ------
|
||||
# Script dédié (NON bloquant ; réseau requis) : drivers GPU détectés via lspci +
|
||||
# outils invité VM, son/micro/casque (PipeWire), Bluetooth, Podman, et — si un
|
||||
# bureau est choisi — Steam, Wine, VR (Monado/SteamVR), winboat-bin (apps
|
||||
# Windows). C'est ce qui rend la machine utilisable IMMÉDIATEMENT, sans
|
||||
# configuration à faire soi-même — la promesse même de FWS.
|
||||
# Script dédié (NON bloquant ; réseau requis) : drivers GPU détectés via lspci
|
||||
# (+ ICD Vulkan 64/32 bits de chaque GPU, loader, vulkaninfo), outils invité VM,
|
||||
# son/micro/casque (PipeWire), Bluetooth, Podman, et — si un
|
||||
# bureau est choisi — Steam, Wine, VR (Monado/SteamVR), PacManager (gestionnaire
|
||||
# de paquets). C'est le cœur « remplacement de Windows » de FWS.
|
||||
if [ -x /usr/local/bin/fws-setup-hardware ]; then
|
||||
# « --unattended » : pilotes, son, Bluetooth, Wi-Fi, réseau — tout ce
|
||||
# sans quoi la machine ne marche pas. Les codecs, Steam/Wine et la VR
|
||||
@@ -792,6 +804,8 @@ if [ -x /usr/local/bin/fws-setup-hardware ]; then
|
||||
/usr/local/bin/fws-setup-hardware --unattended "$DESK" || true
|
||||
fi
|
||||
|
||||
fws-install-step 76 "Configuration du bureau (raccourcis, barres, thème)"
|
||||
|
||||
# --- Config Hyprland (si choisi) : clavier + apps + waybar -------------------
|
||||
# Hyprland (Wayland) NE lit PAS /etc/X11/xorg.conf.d/00-keyboard.conf : sa
|
||||
# disposition est dans SA config (input { kb_layout }). Sans config il démarre nu
|
||||
@@ -848,6 +862,8 @@ if [ "$DESK" = "i3" ] && [ -f /usr/local/share/fws/i3-config ]; then
|
||||
done < /etc/passwd
|
||||
fi
|
||||
|
||||
fws-install-step 84 "Droits administrateur et identité FWS"
|
||||
|
||||
# --- 4bis) Sudo : l'utilisateur créé doit pouvoir administrer -----------------
|
||||
# Arch laisse « %wheel » COMMENTÉ dans sudoers → même un membre de wheel ne peut
|
||||
# pas sudo. On active le groupe wheel (drop-in) ET on y ajoute tous les
|
||||
@@ -920,6 +936,8 @@ systemctl enable systemd-timesyncd.service 2>/dev/null || true
|
||||
# normal), la target le tire par Requires. Dans le bureau, le lanceur
|
||||
# « Récupération FWS » (fws-recovery.desktop, polkit) fait le même travail.
|
||||
|
||||
fws-install-step 92 "Sécurité et réseau du système installé"
|
||||
|
||||
# --- 5) Sécurité : verrouiller root s'il est resté SANS mot de passe ----------
|
||||
# L'airootfs live a souvent un root sans mot de passe ; si l'utilisateur n'en a
|
||||
# pas défini dans le GUI, on verrouille plutôt que de laisser le compte ouvert.
|
||||
@@ -942,6 +960,8 @@ ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||
systemctl enable systemd-resolved.service 2>/dev/null || true
|
||||
install -d /etc/NetworkManager/conf.d
|
||||
printf '[main]\ndns=systemd-resolved\n' > /etc/NetworkManager/conf.d/dns.conf
|
||||
|
||||
fws-install-step 99 "Finalisation"
|
||||
%end
|
||||
|
||||
|
||||
@@ -954,7 +974,9 @@ printf '[main]\ndns=systemd-resolved\n' > /etc/NetworkManager/conf.d/dns.conf
|
||||
# le disque va booter.
|
||||
# ============================================================================
|
||||
%post --nochroot
|
||||
# FWS-TITLE: Finalisation et copie des journaux
|
||||
SYSROOT=/mnt/sysroot
|
||||
[ -d "$SYSROOT" ] || SYSROOT=/mnt/sysimage
|
||||
cp -f "$SYSROOT/var/log/fws-post.log" /tmp/fws-post-chroot.log 2>/dev/null || true
|
||||
fws-install-step 100 "Installation terminée"
|
||||
%end
|
||||
Reference in new issue
Block a user