[Bug 1166841] Re: lxc-create fails if LANG is not valid
Stéphane Graber
stgraber at stgraber.org
Thu Jul 11 18:12:16 UTC 2013
I think the template currently upstream has been fixed for that case.
It currently does:
# make sure we have the current locale defined in the container
if [ -z "$LANG" ] || echo $LANG | grep -E -q "^C(\..+)*$"; then
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
fi
Which should catch C and C.UTF-8 and turn them to en_US when it comes
to generating the actual locale.
We may be able to cherry-pick the fix to saucy or just wait for the next
upstream snapshot (should be around end of July).
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1166841
Title:
lxc-create fails if LANG is not valid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1166841/+subscriptions
More information about the Ubuntu-server-bugs
mailing list