diff options
-rw-r--r-- | scripts/local | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/local b/scripts/local index b06ca63..55d4c46 100644 --- a/scripts/local +++ b/scripts/local @@ -8,10 +8,10 @@ get_fstype () local FS FSTYPE FSSIZE RET FS="${1}" - # vol_id has a more complete list of file systems - if [ -x /lib/udev/vol_id ]; then - eval $(fstype "${FS}" 2> /dev/null) - else + # vol_id has a more complete list of file systems, + # but fstype is more robust + eval $(fstype "${FS}" 2> /dev/null) + if [ "$FSTYPE" = "unknown" ] && [ -x /lib/udev/vol_id ]; then FSTYPE=$(/lib/udev/vol_id -t "${FS}" 2> /dev/null) fi RET=$? |