boxes: Fix locales for ubuntu and debian
This commit is contained in:
parent
cfa1d2e02f
commit
b82e86cb8e
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,6 @@ if [ ${DISTRIBUTION} = 'debian' ]; then
|
||||||
# Ensure locales are properly set, based on http://askubuntu.com/a/238063
|
# Ensure locales are properly set, based on http://askubuntu.com/a/238063
|
||||||
LANG=${LANG:-en_US.UTF-8}
|
LANG=${LANG:-en_US.UTF-8}
|
||||||
sed -i "s/^# ${LANG}/${LANG}/" ${ROOTFS}/etc/locale.gen
|
sed -i "s/^# ${LANG}/${LANG}/" ${ROOTFS}/etc/locale.gen
|
||||||
utils.lxc.attach /usr/sbin/locale-gen
|
|
||||||
utils.lxc.attach update-locale LANG=${LANG}
|
|
||||||
|
|
||||||
# Fixes some networking issues
|
# Fixes some networking issues
|
||||||
# See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info
|
# See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info
|
||||||
|
@ -30,3 +28,6 @@ if [ ${DISTRIBUTION} = 'debian' ]; then
|
||||||
utils.lxc.attach /usr/sbin/update-rc.d -f mountall-bootclean.sh remove
|
utils.lxc.attach /usr/sbin/update-rc.d -f mountall-bootclean.sh remove
|
||||||
utils.lxc.attach /usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove
|
utils.lxc.attach /usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
utils.lxc.attach /usr/sbin/locale-gen ${LANG}
|
||||||
|
utils.lxc.attach update-locale LANG=${LANG}
|
||||||
|
|
Loading…
Add table
Reference in a new issue