[lxc-devel] [PATCH] lxc-gentoo, fix lack of any generated locale

Stéphane Graber stgraber at ubuntu.com
Tue Apr 1 21:51:08 UTC 2014


On Tue, Apr 01, 2014 at 11:48:51PM +0200, Guillaume ZITTA wrote:
> fix lack of any generated locale
> 
> Signed-off-by: Guillaume ZITTA <lxc at zitta.fr>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  templates/lxc-gentoo.in | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in
> index de427dd..d975f78 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
>  ################################################################################
> -- 
> 1.9.0
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140401/6edaa049/attachment.pgp>


More information about the lxc-devel mailing list