mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change EN_US-UTF.8 to C-UTF.8 by default
This commit is contained in:
parent
7dab62bcf6
commit
3164dd8174
2 changed files with 5 additions and 5 deletions
|
@ -175,8 +175,8 @@ chroot_mount
|
||||||
install_packages || (echo "Package installation FAILED."; chroot_umount; exit 1)
|
install_packages || (echo "Package installation FAILED."; chroot_umount; exit 1)
|
||||||
|
|
||||||
# /etc/locale.gen
|
# /etc/locale.gen
|
||||||
# enable at least en_US.UTF8 if nothing was changed, else weird things happen on reboot!
|
# enable at least C.UTF-8 if nothing was changed, else weird things happen on reboot!
|
||||||
! grep -q "^[a-z]" "${DESTDIR}/etc/locale.gen" && sed -i -e 's:^#en_US.UTF-8:en_US.UTF-8:g' "${DESTDIR}/etc/locale.gen"
|
! grep -q "^[a-z]" "${DESTDIR}/etc/locale.gen" && sed -i -e 's:^#C.UTF-8:C.UTF-8:g' "${DESTDIR}/etc/locale.gen"
|
||||||
chroot "${DESTDIR}" locale-gen >/dev/null 2>&1
|
chroot "${DESTDIR}" locale-gen >/dev/null 2>&1
|
||||||
|
|
||||||
# umount chroot
|
# umount chroot
|
||||||
|
|
|
@ -4549,7 +4549,7 @@ auto_system_files () {
|
||||||
echo "myhostname" > "${DESTDIR}"/etc/hostname
|
echo "myhostname" > "${DESTDIR}"/etc/hostname
|
||||||
fi
|
fi
|
||||||
if [[ ! -f ${DESTDIR}/etc/locale.conf ]]; then
|
if [[ ! -f ${DESTDIR}/etc/locale.conf ]]; then
|
||||||
echo "LANG=en_US.UTF-8" > "${DESTDIR}"/etc/locale.conf
|
echo "LANG=C.UTF-8" > "${DESTDIR}"/etc/locale.conf
|
||||||
echo "LC_COLLATE=C" >> "${DESTDIR}"/etc/locale.conf
|
echo "LC_COLLATE=C" >> "${DESTDIR}"/etc/locale.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -4644,8 +4644,8 @@ configure_system() {
|
||||||
# /etc/initcpio.conf
|
# /etc/initcpio.conf
|
||||||
run_mkinitcpio
|
run_mkinitcpio
|
||||||
# /etc/locale.gen
|
# /etc/locale.gen
|
||||||
# enable at least en_US.UTF8 if nothing was changed, else weird things happen on reboot!
|
# enable at least C.UTF8 if nothing was changed, else weird things happen on reboot!
|
||||||
! grep -q "^[a-z]" "${DESTDIR}"/etc/locale.gen && sed -i -e 's:^#en_US.UTF-8:en_US.UTF-8:g' "${DESTDIR}"/etc/locale.gen
|
! grep -q "^[a-z]" "${DESTDIR}"/etc/locale.gen && sed -i -e 's:^#C.UTF-8:C.UTF-8:g' "${DESTDIR}"/etc/locale.gen
|
||||||
chroot "${DESTDIR}" locale-gen >/dev/null 2>&1
|
chroot "${DESTDIR}" locale-gen >/dev/null 2>&1
|
||||||
## END POSTPROCESSING ##
|
## END POSTPROCESSING ##
|
||||||
NEXTITEM="7"
|
NEXTITEM="7"
|
||||||
|
|
Loading…
Reference in a new issue