diff --git a/CHANGELOG b/CHANGELOG index 942c7b029..51250eb2a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,7 +2,7 @@ On the road to 2023.03 Environment changes: - implemented emergency shell with messages and with big font detection support - implemented new zram routine for all boot types -- added kms to archboot_init, to avoid font flickering introduced +- added kms to archboot_init, to avoid font flickering, introduced in kernel 6.0.x series - added archboot specific speed patches to mkinitcpio functions - only use KEXEC_LOAD it's way faster than KEXEC_FILE_LOAD diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 2f30b4edb..d1a4454de 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -191,4 +191,13 @@ _set_hostname() { echo 'archboot' > "${1}/etc/hostname" } +_enable_common_locales() { + exho "Enable common UTF-8 locales..." + _LOCALES="C en_US de_DE es_ES fr_FR pt_PT ru_RU" + for i in "${_LOCALES}"; do + echo "${i}.UTF-8" >> "${1}"/etc/locale.gen + done + ${_NSPAWN} "${1}" locale-gen &>/dev/null +} + # vim: set ft=sh ts=4 sw=4 et: diff --git a/usr/lib/archboot/run/container.sh b/usr/lib/archboot/run/container.sh index 5d50ec2e9..8a8630d69 100755 --- a/usr/lib/archboot/run/container.sh +++ b/usr/lib/archboot/run/container.sh @@ -18,6 +18,7 @@ if echo "${_BASENAME}" | grep -qw "${_RUNNING_ARCH}"; then _clean_mkinitcpio "${1}" _clean_cache "${1}" _install_archboot "${1}" || exit 1 + _enable_common_locales "${1}" || exit 1 _clean_cache "${1}" _umount_special "${1}" || exit 1 _clean_container "${1}" @@ -46,6 +47,7 @@ else _pacman_parameters "${1}" "use_binfmt" _install_base_packages "${1}" "use_binfmt" || exit 1 _install_archboot "${1}" "use_binfmt" || exit 1 + _enable_common_locales "${1}" || exit 1 _clean_mkinitcpio "${1}" _clean_container "${1}" 2>/dev/null else