Use findmnt to generate a mtab

Instead of just copying the hosts mtab use findmnt. This way only reachable mount points are shown.
This commit is contained in:
Pierre Schmitz 2010-08-22 20:26:33 +02:00
parent 0ebc0b4b4b
commit 2f18ca1836
1 changed files with 1 additions and 1 deletions

View File

@ -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
}