Merge branch 'feat/bugreport' into fix/installer-wizard

Conflict resolution, file by file:

- interactive-defaults.ks: their %pre partitioning wins. It targets the largest
  NON-REMOVABLE disk instead of "clearpart --all" (which wiped every disk,
  including the user's Windows) and picks the disk label from the firmware
  (UEFI -> gpt, BIOS -> msdos) instead of forcing MBR everywhere. That
  supersedes my "let blivet decide" change. My GRUB fixes merged cleanly on top
  and are still needed: their branch still carried the broken ESP detection
  (awk on PARTTYPENAME, where "EFI System" contains a space and never matches),
  in the kickstart and twice in fws-grub-finalize, which they do not touch.

- build.sh: theirs for the rsync:// mirrorlist purge, the fws-bugreport syntax
  check and the systemd-networkd masking (networkd and NetworkManager were
  fighting over the same interfaces on the live). Their systemd-only symlink
  repair loop is dropped as redundant: the general restoration also covers
  /etc/resolv.conf and the gpt-auto-generator mask, which their loop missed.

- fws-bugreport replaces my fws-report-bug, which is deleted: theirs is the
  fuller tool (GTK form with a console fallback, exact JSON payload shown
  before sending, journal filtering, .desktop launcher). .xinitrc keeps my
  in-window buttons -- "Envoyer le rapport" and "Redémarrer" on the log window
  itself, retryable without losing the report -- but they now call
  fws-bugreport.

- profiledef.sh: their permission entry, mine removed with the tool.

- CHANGELOG.rst: both sets of entries. Two of mine were rewritten because the
  merge made them false (my reporting tool no longer exists, and my partition
  table change is superseded).

Untouched by their branch, so kept as is: the step-by-step wizard, the
next/back navigation and its transitions, the default desktop.

Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
nocode committed 2026-09-09 11:40:03 +02:00
commit f1884c00ab
14 files changed
+1026 -319

No files matched your search

+43 -2
View File
@@ -211,6 +211,19 @@ fi
echo "==> Mise à jour des miroirs et installation de archiso..."
pacman -Sy --noconfirm reflector || true
reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist || true
# Reflector peut écrire des miroirs rsync:// que pacman ne sait pas utiliser
# (« Protocol "rsync" not supported » → build mort au premier -Sy, vu en réel).
# On retire ces entrées : pacman ne parle qu'http(s) et ftp.
if grep -q '^Server = rsync:' /etc/pacman.d/mirrorlist 2>/dev/null; then
sed -i '/^Server = rsync:/d' /etc/pacman.d/mirrorlist
echo "==> Entrées rsync:// retirées de /etc/pacman.d/mirrorlist (incompatibles pacman)"
fi
# Sécurité : si la mirrorlist se retrouve vide (reflector en échec + purge),
# on retombe sur un miroir géographique fiable.
if ! grep -q '^Server = ' /etc/pacman.d/mirrorlist 2>/dev/null; then
printf 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch\n' > /etc/pacman.d/mirrorlist
echo "==> Mirrorlist vide → miroir géo par défaut"
fi
if [ -n "$FWS_IN_CONTAINER" ]; then
# Image de base qui vieillit → upgrade complet AVANT d'ajouter archiso,
# sinon partial upgrade (archiso tire des deps plus récentes que la base).
@@ -219,6 +232,16 @@ else
pacman -Sy --noconfirm archiso
fi
# Vérification syntaxe de l'outil de rapport (pur Python, exécutée côté WSL/hôte)
if command -v python3 >/dev/null 2>&1 \
&& [ -f "$WORK_DIR/configs/releng/airootfs/usr/local/bin/fws-bugreport" ]; then
echo "==> Vérification syntaxe fws-bugreport (py_compile)..."
PYTHONPYCACHEPREFIX=/tmp/fws-pyc python3 -m py_compile \
"$WORK_DIR/configs/releng/airootfs/usr/local/bin/fws-bugreport" \
&& rm -rf /tmp/fws-pyc \
|| { echo "ERREUR : fws-bugreport contient une erreur de syntaxe." >&2; exit 1; }
fi
echo "==> Préparation de l'environnement de build..."
rm -rf /tmp/fws-build
mkdir -p /tmp/fws-build/releng
@@ -255,9 +278,27 @@ if [ -f /tmp/fws-build/releng/airootfs/etc/systemd/system/fws-rootfsbase.service
/tmp/fws-build/releng/airootfs/etc/systemd/system/multi-user.target.wants/fws-rootfsbase.service
fi
# Les symlinks systemd aplatis par un checkout Windows sont réparés plus bas,
# par la restauration GÉNÉRALE de l'airootfs — elle couvre /etc/systemd/system
# mais aussi /etc/resolv.conf (DNS mort sans lui) et le masque
# /etc/systemd/system-generators/systemd-gpt-auto-generator, que cette boucle
# limitée à /etc/systemd/system laissait passer.
SDDIR=/tmp/fws-build/releng/airootfs/etc/systemd/system
# --- Live : systemd-networkd MASQUÉ (NetworkManager est le pilote) -----------
# Sur le live archiso, systemd-networkd et NetworkManager se battent pour les
# mêmes interfaces (sysctl ipv6 écrasés « Foreign process NetworkManager… »,
# wait-online en échec) — vu à chaque boot live sur bare metal. Toute la
# stack FWS (spoke Wi-Fi, DNS resolved, profils copiés à l'install) passe par
# NetworkManager ; le réseau réseau du live = NM. On masque networkd
# (service + socket) sur le live ; le système INSTALLÉ le désactive déjà en
# %post. L'initramfs (réseau pré-boot archiso) n'est pas concerné.
ln -sf /dev/null "$SDDIR/systemd-networkd.service"
ln -sf /dev/null "$SDDIR/systemd-networkd.socket"
echo "==> Vérification des services systemd..."
ls /tmp/fws-build/releng/airootfs/etc/systemd/system/ 2>/dev/null || echo " (aucun service)"
ls /tmp/fws-build/releng/airootfs/etc/systemd/system/multi-user.target.wants/ 2>/dev/null || echo " (aucun symlink)"
ls "$SDDIR" 2>/dev/null | head -25 || echo " (aucun service)"
ls "$SDDIR/multi-user.target.wants/" 2>/dev/null || echo " (aucun symlink)"
# Copie le repo local (winboat-bin + deps Anaconda packagées)
if ls "$WORK_DIR/local-repo/"*.pkg.tar.zst &>/dev/null 2>&1; then