diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-22 20:26:33 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-22 20:26:33 +0200 |
commit | 2f18ca1836cd2439953d4132867727b205cf929e (patch) | |
tree | b7aac4c06ae24f8ae81297bb313803a1a2fc899c | |
parent | 0ebc0b4b4b08b5407c695ae5122bf4e064370f81 (diff) | |
download | devtools-2f18ca1836cd2439953d4132867727b205cf929e.tar.xz |
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-x | mkarchroot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |