mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
create common locales in container
This commit is contained in:
parent
635d56b5c8
commit
a3368db6f9
3 changed files with 12 additions and 1 deletions
|
@ -2,7 +2,7 @@ On the road to 2023.03
|
||||||
Environment changes:
|
Environment changes:
|
||||||
- implemented emergency shell with messages and with big font detection support
|
- implemented emergency shell with messages and with big font detection support
|
||||||
- implemented new zram routine for all boot types
|
- 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
|
in kernel 6.0.x series
|
||||||
- added archboot specific speed patches to mkinitcpio functions
|
- added archboot specific speed patches to mkinitcpio functions
|
||||||
- only use KEXEC_LOAD it's way faster than KEXEC_FILE_LOAD
|
- only use KEXEC_LOAD it's way faster than KEXEC_FILE_LOAD
|
||||||
|
|
|
@ -191,4 +191,13 @@ _set_hostname() {
|
||||||
echo 'archboot' > "${1}/etc/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:
|
# vim: set ft=sh ts=4 sw=4 et:
|
||||||
|
|
|
@ -18,6 +18,7 @@ if echo "${_BASENAME}" | grep -qw "${_RUNNING_ARCH}"; then
|
||||||
_clean_mkinitcpio "${1}"
|
_clean_mkinitcpio "${1}"
|
||||||
_clean_cache "${1}"
|
_clean_cache "${1}"
|
||||||
_install_archboot "${1}" || exit 1
|
_install_archboot "${1}" || exit 1
|
||||||
|
_enable_common_locales "${1}" || exit 1
|
||||||
_clean_cache "${1}"
|
_clean_cache "${1}"
|
||||||
_umount_special "${1}" || exit 1
|
_umount_special "${1}" || exit 1
|
||||||
_clean_container "${1}"
|
_clean_container "${1}"
|
||||||
|
@ -46,6 +47,7 @@ else
|
||||||
_pacman_parameters "${1}" "use_binfmt"
|
_pacman_parameters "${1}" "use_binfmt"
|
||||||
_install_base_packages "${1}" "use_binfmt" || exit 1
|
_install_base_packages "${1}" "use_binfmt" || exit 1
|
||||||
_install_archboot "${1}" "use_binfmt" || exit 1
|
_install_archboot "${1}" "use_binfmt" || exit 1
|
||||||
|
_enable_common_locales "${1}" || exit 1
|
||||||
_clean_mkinitcpio "${1}"
|
_clean_mkinitcpio "${1}"
|
||||||
_clean_container "${1}" 2>/dev/null
|
_clean_container "${1}" 2>/dev/null
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue