summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-10-07 12:30:30 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2007-10-07 12:30:30 -0500
commita336e5a91cf54d8b5c800ad304db7d11059dbf1f (patch)
tree2bfc952543bf1b5a9fa27e0215c631075c34accd
parent192b24f829953ff2bb0e86ac6bdc686b42d9f0b8 (diff)
downloaddevtools32-a336e5a91cf54d8b5c800ad304db7d11059dbf1f.tar.xz
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 <aaronmgriffin@gmail.com>
-rwxr-xr-xmkarchroot4
1 files changed, 4 insertions, 0 deletions
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