From a3a8464aff3c10d4337e9238629896f2625ac22a Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 29 Dec 2008 13:34:26 -0800 Subject: Use udev's blkid instead of klibc-extra's fstype This is better and more updated with regards to figuring out the fs type of a given block device Original-work-by: Gerhard Brauer Signed-off-by: Aaron Griffin --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/autodetect b/install/autodetect index 1991798..033d741 100644 --- a/install/autodetect +++ b/install/autodetect @@ -14,7 +14,7 @@ install () findfs () { for blkdev in $(find /dev -type b | grep -v -e loop -e ram -e fd); do - eval $(/usr/lib/klibc/bin/fstype 2>/dev/null < ${blkdev}) + FSTYPE="$(/sbin/blkid -o value -s TYPE "${blkdev}")" if [ -n "${FSTYPE}" -a "${FSTYPE}" != "swap" -a "${FSTYPE}" != "unknown" -a "${FSTYPE}" != "luks" -a "${FSTYPE}" != "lvm2" ]; then echo ${FSTYPE} fi -- cgit v1.2.3-24-g4f1b