From: Michael Prokop Date: Sun, 31 Jan 2010 12:46:46 +0000 (+0100) Subject: Avoid the use of fstype in a running live system, as it's a executable and not a... X-Git-Tag: debian/2.0.15-1~271 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=e4b9ce3049d5eceb4cb815087062a5bed0d6c2ce Avoid the use of fstype in a running live system, as it's a executable and not a shell function and causes problems for example within live-snapshot. --- diff --git a/scripts/live-helpers b/scripts/live-helpers index d5ad29f..0d97d10 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -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 }