From e782cbd00b84f2a60a713c097be28044d5d8c37d Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Sun, 4 Nov 2007 14:55:42 -0800 Subject: Copy mtab over to chroot so that pacman can detect disk space --- mkarchroot | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.3-70-g09d2