[arch-projects] [mkinitcpio] [PATCH 2/4] autodetect: search for /usr explicitly using -T
Dave Reisner
dreisner at archlinux.org
Wed Aug 28 21:32:05 EDT 2013
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 at archlinux.org>
---
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
--
1.8.4
More information about the arch-projects
mailing list