Commit 9d6ee150 authored by Steven Shiau's avatar Steven Shiau
Browse files

Use ntfs-3g instead of kernel module ntfs.ko.

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)"
parent 9b471bfc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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