restore support for old persistence media
[live-boot-grml.git] / debian / patches / 34_ignore_unknown_filesystems.patch
1 Index: live-boot-grml/components/9990-misc-helpers.sh
2 ===================================================================
3 --- live-boot-grml.orig/components/9990-misc-helpers.sh 2014-03-08 13:38:26.286476006 +0100
4 +++ live-boot-grml/components/9990-misc-helpers.sh      2014-03-08 13:38:26.282476475 +0100
5 @@ -443,6 +443,12 @@
6                 return 1
7         fi
8  
9 +       # get_fstype might report "unknown" or "swap", ignore it as no such kernel module exists
10 +       if [ "${fstype}" = "unknown" ] || [ "${fstype}" = "swap" ]
11 +       then
12 +               return 1
13 +       fi
14 +
15         # Try to look if it is already supported by the kernel
16         if grep -q ${fstype} /proc/filesystems
17         then