fix lack of any generated locale
Signed-off-by: Guillaume ZITTA <lxc@zitta.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
cache_net && \
cache_dev && \
cache_openrc && \
+ cache_locale && \
rm -rf "${cachefs}" && \
mv "${partialfs}" "${cachefs}" && \
printf "###### cache_setup: Cache should be ready\n"
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
################################################################################