summaryrefslogtreecommitdiffstats
path: root/mkarchroot
diff options
context:
space:
mode:
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkarchroot b/mkarchroot
index bc81872..84309a8 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -84,6 +84,9 @@ chroot_mount ()
echo "copying mtab : /etc/mtab"
cp /etc/mtab "${working_dir}/etc/mtab"
+ echo "copying resolv.conf : /etc/resolv.conf"
+ cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
+
trap 'chroot_umount' 0 1 2 15
}
@@ -164,9 +167,6 @@ else
cp ${makepkg_conf} ${working_dir}/etc/makepkg.conf
fi
- echo "copying resolv.conf : /etc/resolv.conf"
- cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
-
echo "generating default locales"
cp /etc/locale.gen "${working_dir}/etc/locale.gen"
chroot "${working_dir}" locale-gen