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>
This commit is contained in:
Aaron Griffin 2007-10-07 12:30:30 -05:00
parent 192b24f829
commit a336e5a91c
1 changed files with 4 additions and 0 deletions

View File

@ -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