From b297c435d3b22fc335411471a8dbc340b1fcbf51 Mon Sep 17 00:00:00 2001 From: fkDead Date: Thu, 26 Nov 2026 14:00:07 +0100 Subject: [PATCH] feat(installer): generate every UTF-8 locale in the live A locale that is not generated makes Anaconda fall back to English on every screen. /etc/locale.gen keeps its short list, so the installed system only gets the chosen language. --- configs/baseline/airootfs/root/customize_airootfs.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configs/baseline/airootfs/root/customize_airootfs.sh b/configs/baseline/airootfs/root/customize_airootfs.sh index 426cac3..e3c08bd 100644 --- a/configs/baseline/airootfs/root/customize_airootfs.sh +++ b/configs/baseline/airootfs/root/customize_airootfs.sh @@ -12,7 +12,18 @@ set -euo pipefail # 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. +# +# The installer must also be able to switch to ANY of Anaconda's languages: a +# locale that is not generated makes Anaconda fall back to English on every +# screen (pyanaconda/localization.py, setup_locale). So the live gets every +# UTF-8 locale of glibc (~190 MiB in the image, ~10 MiB once compressed), while +# /etc/locale.gen keeps its short list: the installed system is a copy of the +# live, and its %post runs locale-gen from that file, which rebuilds the +# archive with the chosen language only. +cp /etc/locale.gen /etc/locale.gen.fws +grep -E '[[:space:]]UTF-8$' /usr/share/i18n/SUPPORTED > /etc/locale.gen locale-gen +mv -f /etc/locale.gen.fws /etc/locale.gen # --- Overlays pyanaconda (écran de progression FWS, journal en direct) --------------------------- # mkarchiso copie l'airootfs AVANT le pacstrap (cf. fws/mkarchiso :