summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-22 20:26:33 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-22 20:26:33 +0200
commit2f18ca1836cd2439953d4132867727b205cf929e (patch)
treeb7aac4c06ae24f8ae81297bb313803a1a2fc899c
parent0ebc0b4b4b08b5407c695ae5122bf4e064370f81 (diff)
Use findmnt to generate a mtab
Instead of just copying the hosts mtab use findmnt. This way only reachable mount points are shown.
-rwxr-xr-xmkarchroot2
1 files changed, 1 insertions, 1 deletions
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
}