mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-16 17:08:24 +00:00
lxc-archlinux: Properly set default locale in /etc/locale.conf
Signed-off-by: Bill Kolokithas <kolokithas.b@gmail.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
05e61b82cf
commit
8fefbee406
@ -75,7 +75,7 @@ configure_arch() {
|
|||||||
if [ "${is_arch}" ]; then
|
if [ "${is_arch}" ]; then
|
||||||
cp -p /etc/locale.conf /etc/locale.gen "${rootfs_path}/etc/"
|
cp -p /etc/locale.conf /etc/locale.gen "${rootfs_path}/etc/"
|
||||||
else
|
else
|
||||||
echo "LANG=${default_lang}" > "${rootfs_path}/etc/locale.conf"
|
echo "LANG=${default_locale}" > "${rootfs_path}/etc/locale.conf"
|
||||||
if [ -e "${rootfs_path}/etc/locale.gen" ]; then
|
if [ -e "${rootfs_path}/etc/locale.gen" ]; then
|
||||||
sed -i 's@^#\(en_US\.UTF-8\)@\1@' "${rootfs_path}/etc/locale.gen"
|
sed -i 's@^#\(en_US\.UTF-8\)@\1@' "${rootfs_path}/etc/locale.gen"
|
||||||
if [ ! "${default_locale}" = "en_US.UTF-8" ]; then
|
if [ ! "${default_locale}" = "en_US.UTF-8" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user