From 31e5439dd5a78d413a77a79ffa8179815a02570c Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 21 Aug 2013 10:30:11 -0400 Subject: 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 --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b