[lxc-devel] [PATCH] lxc-gentoo, fix lack of any generated locale
Guillaume ZITTA
lxc at zitta.fr
Tue Apr 1 21:48:51 UTC 2014
fix lack of any generated locale
Signed-off-by: Guillaume ZITTA <lxc at zitta.fr>
---
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
More information about the lxc-devel
mailing list