Avoid the use of fstype in a running live system, as it's a executable and not a...
authorMichael Prokop <mika@grml.org>
Sun, 31 Jan 2010 12:46:46 +0000 (13:46 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:06 +0000 (17:48 +0100)
scripts/live-helpers

index d5ad29f..0d97d10 100644 (file)
@@ -76,24 +76,6 @@ is_supported_fs ()
 
 get_fstype ()
 {
-       local FSTYPE
-       local FSSIZE
-
-       # fstype misreports LUKS devices
-       if is_luks "${1}"
-       then
-           /lib/udev/vol_id -t ${1} 2>/dev/null
-           return
-       fi
-
-       eval $(fstype ${1} 2>/dev/null)
-
-       if [ "${FSTYPE}" != "unknown" ]
-       then
-               echo ${FSTYPE}
-               return 0
-       fi
-
        /lib/udev/vol_id -t ${1} 2>/dev/null
 }