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:
parent
0ebc0b4b4b
commit
2f18ca1836
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue