Commit 3fefd6e6 by Stéphane Graber

ubuntu: Don't fail on invalid locale

parent 19668d8b
...@@ -87,11 +87,11 @@ EOF ...@@ -87,11 +87,11 @@ EOF
# make sure we have the current locale defined in the container # make sure we have the current locale defined in the container
if [ -z "$LANG" ] || echo $LANG | grep -E -q "^C(\..+)*$"; then if [ -z "$LANG" ] || echo $LANG | grep -E -q "^C(\..+)*$"; then
chroot $rootfs locale-gen en_US.UTF-8 chroot $rootfs locale-gen en_US.UTF-8 || true
chroot $rootfs update-locale LANG=en_US.UTF-8 chroot $rootfs update-locale LANG=en_US.UTF-8 || true
else else
chroot $rootfs locale-gen $LANG chroot $rootfs locale-gen $LANG || true
chroot $rootfs update-locale LANG=$LANG chroot $rootfs update-locale LANG=$LANG || true
fi fi
# generate new SSH keys # generate new SSH keys
......
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