Files
FWS-ISO/configs/baseline/airootfs/root/customize_airootfs.sh
T
nocode d201402072 feat(installer): show the installation log live from the progress screen
The progress screen says what phase is running, but when the bar stops
the user cannot tell a slow mirror from a crash without switching to a
console. A "Afficher le journal" toggle under the bar now reveals a live
tail of the FWS logs: the %pre and %post --nochroot logs on the live, and
the chrooted %post log on the target, which is where the CRITIQUE lines
about the EFI partition and the initramfs are written.

The upstream spoke is overlaid like the runtime module already is, since
an airootfs file on a package path breaks the pacstrap.
2026-11-18 08:17:13 +01:00

39 lines
2.1 KiB
Bash

#!/usr/bin/env bash
# ============================================================================
# FWS — script de customisation de l'airootfs.
# Exécuté par mkarchiso DANS le chroot airootfs, APRÈS le pacstrap
# (cf. fws/mkarchiso _make_customize_airootfs), puis supprimé : il n'apparaît
# donc PAS dans l'ISO finale. C'est le seul endroit fiable pour lancer des
# commandes dans l'image (les hooks pacman ne tournent pas sous pacstrap).
# ============================================================================
set -euo pipefail
# Génère les locales déclarées dans /etc/locale.gen. en_US.UTF-8 est REQUIS par
# Anaconda (ses modules DBus font setlocale(LC_ALL, "en_US.UTF-8") au démarrage,
# sinon « locale.Error: unsupported locale setting » → le module Boss plante).
# ~3 Mo générés, vs 222 Mo pour le paquet glibc-locales complet.
locale-gen
# --- Overlays pyanaconda (écran de progression FWS, journal en direct) ---------------------------
# mkarchiso copie l'airootfs AVANT le pacstrap (cf. fws/mkarchiso :
# _make_custom_airootfs puis _make_packages) : un fichier de l'airootfs qui
# remplace un fichier du paquet « anaconda » fait échouer pacman (« exists in
# filesystem ») et donc tout le build. Ces deux fichiers vivent donc hors des
# chemins du paquet, et on les pose ICI, après l'installation : c'est le seul
# moment où écraser un fichier de paquet est légitime (et le script est
# supprimé après exécution, il ne part pas dans l'ISO).
if [ -d /usr/local/share/fws/anaconda-overlay/pyanaconda ]; then
cp -a /usr/local/share/fws/anaconda-overlay/. /usr/lib/python3.14/site-packages/
rm -rf /usr/local/share/fws/anaconda-overlay
# Le build doit s'arrêter net si l'overlay n'a pas atterri : sans lui, plus
# d'écran de progression détaillé (mais l'installateur fonctionne quand même).
for _f in modules/runtime/scripts/runtime.py modules/boss/installation.py \
ui/gui/spokes/installation_progress.py; do
if [ ! -f "/usr/lib/python3.14/site-packages/pyanaconda/${_f}" ]; then
echo "[FWS] overlay pyanaconda manquant : ${_f}" >&2
exit 1
fi
done
fi