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:
parent
192b24f829
commit
a336e5a91c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue