Commit 2f18ca18 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

Use findmnt to generate a mtab

Instead of just copying the hosts mtab use findmnt. This way only reachable mount points are shown.
parent 0ebc0b4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
}