From 2f18ca1836cd2439953d4132867727b205cf929e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Aug 2010 20:26:33 +0200 Subject: Use findmnt to generate a mtab Instead of just copying the hosts mtab use findmnt. This way only reachable mount points are shown. --- mkarchroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkarchroot b/mkarchroot index 189c9d4..fe436f7 100755 --- a/mkarchroot +++ b/mkarchroot @@ -114,7 +114,7 @@ chroot_mount() { } copy_hostconf () { - cp /etc/mtab "${working_dir}/etc/mtab" + chroot "${working_dir}" /bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS > "${working_dir}/etc/mtab" cp /etc/resolv.conf "${working_dir}/etc/resolv.conf" echo "${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist } -- cgit v1.2.3-70-g09d2