From: Guillaume ZITTA Date: Tue, 1 Apr 2014 21:48:51 +0000 (+0200) Subject: lxc-gentoo, fix lack of any generated locale X-Git-Tag: lxc-1.1.0.alpha1~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a74e9097a932729d9eff9ce562288e89731b177;p=thirdparty%2Flxc.git lxc-gentoo, fix lack of any generated locale fix lack of any generated locale Signed-off-by: Guillaume ZITTA Acked-by: Stéphane Graber --- diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in index de427dd8a..d975f789a 100644 --- a/templates/lxc-gentoo.in +++ b/templates/lxc-gentoo.in @@ -129,6 +129,7 @@ cache_setup(){ cache_net && \ cache_dev && \ cache_openrc && \ + cache_locale && \ rm -rf "${cachefs}" && \ mv "${partialfs}" "${cachefs}" && \ printf "###### cache_setup: Cache should be ready\n" @@ -257,6 +258,16 @@ cache_openrc() return 0 } +cache_locale() +{ + printf "### cache_locale(): initiating minimale locale en_US.UTF-8 \n" + + echo "en_US.UTF-8 UTF-8" >> "${partialfs}/etc/locale.gen" + chroot "${partialfs}" locale-gen + + return 0 +} + ################################################################################ # CONTAINER Preparation ################################################################################