Commit 93903d99 by Guillaume ZITTA Committed by Stéphane Graber

lxc-gentoo, fix lack of any generated locale

fix lack of any generated locale Signed-off-by: 's avatarGuillaume ZITTA <lxc@zitta.fr> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 1f6cf686
......@@ -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
################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment