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@grml.org>
Fri, 21 Aug 2015 14:44:47 +0000 (16:44 +0200)
components/9990-misc-helpers.sh

index 9318a4b..a97615b 100755 (executable)
@@ -420,6 +420,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