fix(build): install the pyanaconda overlays after pacstrap

mkarchiso copies the profile airootfs before it installs packages, so shipping
files that replace files owned by the anaconda package aborted the build with
"exists in filesystem" and unpacstrapped root. Keep the two overlays in a
staging directory outside the package paths and copy them from
customize_airootfs.sh, which runs after pacstrap; fail the build loudly if they
do not land, and drop the staging copy so it never reaches the ISO.
This commit is contained in:
BlackAngelTV committed 2026-10-29 21:19:18 +01:00
1 parent 76f08dd66d
commit c7abbc6fb7
4 files changed
+23 -1

No files matched your search

@@ -13,3 +13,25 @@ set -euo pipefail
# 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) ---------------------------
# 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; do
if [ ! -f "/usr/lib/python3.14/site-packages/pyanaconda/${_f}" ]; then
echo "[FWS] overlay pyanaconda manquant : ${_f}" >&2
exit 1
fi
done
fi