]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ubuntu template: fix installation when LANG=C
authorDwight Engen <dwight.engen@oracle.com>
Wed, 3 Apr 2013 18:43:15 +0000 (14:43 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 10 Apr 2013 21:11:05 +0000 (23:11 +0200)
The ubuntu template will silently fail (because it is set -e) on
the locale-gen command when LANG=C

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-ubuntu.in

index f011633263066f7921c34e8c46f4bde66c01228d..db38af063277bfd01ca97e4345fbfbd01daa9fe8 100644 (file)
@@ -85,8 +85,10 @@ EOF
         chroot $rootfs locale-gen en_US.UTF-8
         chroot $rootfs update-locale LANG=en_US.UTF-8
     else
-        chroot $rootfs locale-gen $LANG
-        chroot $rootfs update-locale LANG=$LANG
+        if [ "$LANG" != "C" ]; then
+            chroot $rootfs locale-gen $LANG
+            chroot $rootfs update-locale LANG=$LANG
+        fi
     fi
 
     return 0