diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-10-20 01:09:43 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-10-20 01:09:43 -0500 |
commit | a80fe69f4b56b1ee10d2c57861282571fc89e8e1 (patch) | |
tree | 25cf5b4f516224d4fa61763778eda502d0728e52 /mkarchroot | |
parent | 80d0aa8912e5c4ec144c51a373d82f1063ebb170 (diff) | |
download | devtools-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-x | mkarchroot | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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" |