Use ntfs-3g instead of kernel module ntfs.ko.
authorSteven Shiau <steven@nchc.org.tw>
Fri, 6 Sep 2019 07:55:36 +0000 (15:55 +0800)
committerSteven Shiau <steven@nchc.org.tw>
Fri, 6 Sep 2019 07:55:36 +0000 (15:55 +0800)
Use ntfs-3g instead of kernel module ntfs.ko to mount the file system.
Since Linux kernel 4.19.37-1 from Debian has dropped the support of
ntfs.ko:
https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_4.19.37+5_changelog
<snipped>
"* ntfs: Disable NTFS_FS due to lack of upstream security support
    (CVE-2018-12929, CVE-2018-12930, CVE-2018-12931)"

components/9990-misc-helpers.sh

index 1b89e59..75338e0 100755 (executable)
@@ -472,6 +472,14 @@ is_supported_fs ()
        fi
 
        # Try to look if it is already supported by the kernel
+       # For ntfs, since user space program ntfs-3g will be used. Check ntfs-3g instead of kernel module.
+       if [ "${fstype}" = "ntfs" ]; then
+               if type ntfs-3g >/dev/null 2>&1; then
+                       return 0
+               else
+                       return 1
+               fi
+       fi
        if grep -q ${fstype} /proc/filesystems
        then
                return 0