New patch to ignore "unknown" filesystems in is_supported_fs()
authorMichael Prokop <mika@grml.org>
Fri, 26 Jun 2015 13:01:33 +0000 (15:01 +0200)
committerEvgeni Golov <evgeni@debian.org>
Fri, 26 Jun 2015 13:01:33 +0000 (15:01 +0200)
components/9990-misc-helpers.sh

index 4251898..6f7b599 100755 (executable)
@@ -443,6 +443,12 @@ is_supported_fs ()
                return 1
        fi
 
+       # get_fstype might report "unknown" or "swap", ignore it as no such kernel module exists
+       if [ "${fstype}" = "unknown" ] || [ "${fstype}" = "swap" ]
+       then
+               return 1
+       fi
+
        # Try to look if it is already supported by the kernel
        if grep -q ${fstype} /proc/filesystems
        then