Commit 75129865 by Dwight Engen Committed by Stéphane Graber

ubuntu template: fix installation when LANG=C

The ubuntu template will silently fail (because it is set -e) on the locale-gen command when LANG=C Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 9eee2f77
...@@ -85,9 +85,11 @@ EOF ...@@ -85,9 +85,11 @@ EOF
chroot $rootfs locale-gen en_US.UTF-8 chroot $rootfs locale-gen en_US.UTF-8
chroot $rootfs update-locale LANG=en_US.UTF-8 chroot $rootfs update-locale LANG=en_US.UTF-8
else else
if [ "$LANG" != "C" ]; then
chroot $rootfs locale-gen $LANG chroot $rootfs locale-gen $LANG
chroot $rootfs update-locale LANG=$LANG chroot $rootfs update-locale LANG=$LANG
fi fi
fi
return 0 return 0
} }
......
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