Quoting Dwight Engen (dwight.en...@oracle.com): > 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.en...@oracle.com>
Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com> > --- > templates/lxc-ubuntu.in | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in > index f011633..db38af0 100644 > --- a/templates/lxc-ubuntu.in > +++ b/templates/lxc-ubuntu.in > @@ -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 > -- > 1.7.12.3 > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Lxc-devel mailing list > Lxc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-devel ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel