diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/autodetect | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/install/autodetect b/install/autodetect index b3e6b90..0010da3 100644 --- a/install/autodetect +++ b/install/autodetect @@ -14,10 +14,7 @@ install () findfs () { for blkdev in $(find /dev -type b | grep -v -e /dev/loop -e /dev/ram -e /dev/fd); do - eval $(/usr/lib/klibc/bin/fstype 2>/dev/null < ${blkdev}) - if [ -n "${FSTYPE}" -a "${FSTYPE}" != "swap" -a "${FSTYPE}" != "unknown" -a "${FSTYPE}" != "luks" -a "${FSTYPE}" != "lvm2" ]; then - echo ${FSTYPE} - fi + (eval $(/sbin/blkid -o udev -p "${blkdev}"); [ "${ID_FS_USAGE}" = "filesystem" ] && echo $ID_FS_TYPE) done } |