summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2011-03-27 15:13:50 +0200
committerThomas Bächler <thomas@archlinux.org>2011-03-27 15:13:50 +0200
commit8d60578fad3b88a88b61341a4dc822e1522df9f2 (patch)
tree4937efed97f6ac8882049c82c1e552592f7649b7 /install
parentf1073c5460f2381c5a8d59eec808952e9ed47af8 (diff)
downloadmkinitcpio-8d60578fad3b88a88b61341a4dc822e1522df9f2.tar.gz
mkinitcpio-8d60578fad3b88a88b61341a4dc822e1522df9f2.tar.xz
Simplify root file system detection
Instead of calling blkid, get the file system type directly from findmnt. Fixes FS#23100.
Diffstat (limited to 'install')
-rw-r--r--install/autodetect3
1 files changed, 1 insertions, 2 deletions
diff --git a/install/autodetect b/install/autodetect
index 6b8477f..70fac56 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -14,8 +14,7 @@ install ()
local rootdev
if [ -f /proc/self/mountinfo -a -x /bin/findmnt ]; then
- rootdev=$(/bin/findmnt -n -u -o source /)
- /sbin/blkid -u filesystem -o value -s TYPE -p "${rootdev}" 2>/dev/null
+ /bin/findmnt -n -u -o fstype / 2>/dev/null
fi
}