From 869c314159497c74aa6cf477862629b05a9fd2b0 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 1 Mar 2014 16:38:21 -0500 Subject: Always use the --target flag with findmnt Prevents problems with bogusly named filesystems, e.g.: mount -t tmpfs / /mount/point Fixes FS#39090. --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/autodetect') diff --git a/install/autodetect b/install/autodetect index c98db73..846aa3a 100644 --- a/install/autodetect +++ b/install/autodetect @@ -30,7 +30,7 @@ build() { done # detect filesystem for root - if rootfstype=$(findmnt -uno fstype '/'); then + if rootfstype=$(findmnt -uno fstype -T '/'); then add_if_avail "$rootfstype" else error "failed to detect root filesystem" -- cgit v1.2.3-24-g4f1b