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.
This commit is contained in:
1 file changed
+11
@@ -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 :
|
||||
|
||||
Reference in new issue
Block a user