From 83ef38409182a9c024809553dff8c872902d0889 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sat, 6 Mar 2010 21:25:39 -0300 Subject: Change how autodetect hook lookup for filesystems In this way, remove eval hacks and enviroments vars, just use blkid syntax. I guess in this way will fix/hide "command not found" when fstype is not property setup in fs, reported by some users. Signed-off-by: Gerardo Exequiel Pozzi --- install/autodetect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 6c9193c..63e85c2 100644 --- a/install/autodetect +++ b/install/autodetect @@ -14,7 +14,7 @@ install () findfs () { for blkdev in $(find /dev -type b | grep -v -e /dev/loop -e /dev/ram -e /dev/fd); do - (eval $(/sbin/blkid -o udev -p "${blkdev}"); [ "${ID_FS_USAGE}" = "filesystem" ] && echo $ID_FS_TYPE) + /sbin/blkid -u filesystem -o value -s TYPE -p "${blkdev}" 2> /dev/null done } -- cgit v1.2.3-24-g4f1b