create common locales in container

This commit is contained in:
Tobias Powalowski 2023-02-24 20:37:02 +01:00
parent 635d56b5c8
commit a3368db6f9
3 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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:

View file

@ -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