summaryrefslogtreecommitdiff
path: root/mkarchroot
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-20 01:09:43 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-20 01:09:43 -0500
commita80fe69f4b56b1ee10d2c57861282571fc89e8e1 (patch)
tree25cf5b4f516224d4fa61763778eda502d0728e52 /mkarchroot
parent80d0aa8912e5c4ec144c51a373d82f1063ebb170 (diff)
downloaddevtools32-a80fe69f4b56b1ee10d2c57861282571fc89e8e1.tar.xz
Only run locale-gen if the target root has /etc/locale.gen
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot8
1 files changed, 5 insertions, 3 deletions
diff --git a/mkarchroot b/mkarchroot
index 58065b3..099083d 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -171,9 +171,11 @@ else
cp ${makepkg_conf} ${working_dir}/etc/makepkg.conf
fi
- echo "generating default locales"
- cp /etc/locale.gen "${working_dir}/etc/locale.gen"
- chroot "${working_dir}" locale-gen
+ if [ -e "${working_dir}/etc/locale.gen" ]; then
+ echo "generating default locales from host system"
+ cp /etc/locale.gen "${working_dir}/etc/locale.gen"
+ chroot "${working_dir}" locale-gen
+ fi
if [ ! -e "${working_dir}/.arch-chroot" ]; then
date +%s > "${working_dir}/.arch-chroot"