From: Michael Prokop Date: Fri, 26 Jun 2015 13:01:33 +0000 (+0200) Subject: ignore "unknown" filesystems in is_supported_fs() X-Git-Tag: debian/1%20160511~9^2~1 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=da50dd404b60b90161a0b8c33698c3d36496d7cd;p=live-boot-grml.git ignore "unknown" filesystems in is_supported_fs() --- diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 9318a4b..a97615b 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -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