summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-03-01 22:38:21 +0100
committerDave Reisner <dreisner@archlinux.org>2014-03-01 22:38:21 +0100
commit869c314159497c74aa6cf477862629b05a9fd2b0 (patch)
treeea87c4460db7086ea16ff9e8ae4b6f5a20192cfa /install
parented65f93eb4d23aee3129611c90fa2b81e0cb7f42 (diff)
downloadmkinitcpio-869c314159497c74aa6cf477862629b05a9fd2b0.tar.gz
mkinitcpio-869c314159497c74aa6cf477862629b05a9fd2b0.tar.xz
Always use the --target flag with findmnt
Prevents problems with bogusly named filesystems, e.g.: mount -t tmpfs / /mount/point Fixes FS#39090.
Diffstat (limited to 'install')
-rw-r--r--install/autodetect2
1 files changed, 1 insertions, 1 deletions
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"