From 8d60578fad3b88a88b61341a4dc822e1522df9f2 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sun, 27 Mar 2011 15:13:50 +0200 Subject: Simplify root file system detection Instead of calling blkid, get the file system type directly from findmnt. Fixes FS#23100. --- install/autodetect | 3 +-- 1 file changed, 1 insertion(+), 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 } -- cgit v1.2.3-24-g4f1b