summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkarchroot3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkarchroot b/mkarchroot
index c4844d1..9fd2022 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -79,6 +79,9 @@ function chroot_mount ()
[ -e "${working_dir}/var/cache/pacman" ] || mkdir -p "${working_dir}/var/cache/pacman"
mount -o bind /var/cache/pacman "${working_dir}/var/cache/pacman"
+ echo "copying mtab : /etc/mtab"
+ cp /etc/mtab "${working_dir}/etc/mtab"
+
trap 'chroot_umount' 0 1 2 15
}