From a336e5a91cf54d8b5c800ad304db7d11059dbf1f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 7 Oct 2007 12:30:30 -0500 Subject: Generate current locale in new chroots by default This is a slightly hackish way of auto-filling locale information based on the locale at the time of chroot building. Further locale changes must be done manually. Signed-off-by: Aaron Griffin --- mkarchroot | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mkarchroot') diff --git a/mkarchroot b/mkarchroot index 2a02196..ec08542 100755 --- a/mkarchroot +++ b/mkarchroot @@ -136,6 +136,10 @@ else ldconfig -r "${working_dir}" fi + echo "generating default locales" + sed -i "s|^#\(.*$LANG\)|\1|g" /etc/locale.gen + locale-gen + if [ ! -e "${working_dir}/.arch-chroot" ]; then date +%s > "${working_dir}/.arch-chroot" fi -- cgit v1.2.3-24-g4f1b