Skip to content

Commit

Permalink
Avoid the use of fstype in a running live system, as it's a executabl…
Browse files Browse the repository at this point in the history
…e and not a shell function and causes problems for example within live-snapshot.
  • Loading branch information
mika authored and daniel-baumann committed Jan 31, 2010
1 parent 609d0e9 commit 3442bd3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions scripts/live-helpers
Expand Up @@ -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
}

Expand Down

0 comments on commit 3442bd3

Please sign in to comment.