summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-08-21 16:30:11 +0200
committerDave Reisner <dreisner@archlinux.org>2013-08-28 13:37:10 +0200
commit31e5439dd5a78d413a77a79ffa8179815a02570c (patch)
tree3dd5fdca8b596f65cdd5ae9079ab74ef717d00f1
parentc7a09dbe28380299e46614462d1e4a3d6af6c3f6 (diff)
downloadmkinitcpio-31e5439dd5a78d413a77a79ffa8179815a02570c.tar.gz
mkinitcpio-31e5439dd5a78d413a77a79ffa8179815a02570c.tar.xz
autodetect: search for /usr explicitly using -T
Doing this oddly results in findmnt never stat(2)'ing the target directory, which might be problematic with stale NFS mounts and maybe autofs. Fixes FS#36629, I suppose. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--install/autodetect2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect
index d6e9e29..3710e68 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -37,7 +37,7 @@ build() {
fi
# detect filesystem for separate /usr
- if usrfstype=$(findmnt -snero fstype --tab-file '/etc/fstab' /usr); then
+ if usrfstype=$(findmnt -snero fstype --tab-file '/etc/fstab' -T '/usr'); then
add_if_avail "$usrfstype"
fi