aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-technologies.net>2010-12-28 21:32:51 +0100
committerDaniel Lezcano <dlezcano@fr.ibm.com>2010-12-28 21:32:51 +0100
commit57f61aa7504fc965b0c3dca2e1553ad535eacfd8 (patch)
treee0c45f78f83b4f252dd599027d0b684a22b0a2b7
parentCorrecting include argument when calling debootstrap. (diff)
downloadlxc-57f61aa7504fc965b0c3dca2e1553ad535eacfd8.tar.gz
lxc-57f61aa7504fc965b0c3dca2e1553ad535eacfd8.tar.bz2
lxc-57f61aa7504fc965b0c3dca2e1553ad535eacfd8.zip
Correcting charset argument when calling locale-gen.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--templates/lxc-debian.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index 0b7d711..b3d1634 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -76,10 +76,10 @@ EOF
# reconfigure some services
if [ -z "$LANG" ]; then
- chroot $rootfs locale-gen en_US.UTF-8
+ chroot $rootfs locale-gen en_US.UTF-8 UTF-8
chroot $rootfs update-locale LANG=en_US.UTF-8
else
- chroot $rootfs locale-gen $LANG
+ chroot $rootfs locale-gen $LANG $(echo $LANG | cut -d. -f2)
chroot $rootfs update-locale LANG=$LANG
fi