Commit 8fefbee4 by Bill Kolokithas Committed by Stéphane Graber

lxc-archlinux: Properly set default locale in /etc/locale.conf

parent 05e61b82
...@@ -75,7 +75,7 @@ configure_arch() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment