Mount ntfs disks using ntfs3

This commit is contained in:
Manuel Thalmann 2024-09-12 20:18:57 +02:00
parent 81c06bf5e0
commit 5987f326cc

View file

@ -324,14 +324,17 @@
builtins.concatMap builtins.concatMap
(_: [ (_: [
probeScript probeScript
(builtins.concatStringsSep " " [ (builtins.concatStringsSep " " ([
"sudo" "sudo"
"mount" "mount"
"--mkdir" "--mkdir"
] ++ (lib.optionals (_.format == "ntfs") [
"-t" "ntfs3"
]) ++ [
(builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions)) (builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions))
(partPath _) (partPath _)
(normalizePath "/${rootDir}/${_.mountPoint}") (normalizePath "/${rootDir}/${_.mountPoint}")
]) ]))
]) ])
(lib.lists.sortOn (lib.lists.sortOn
(_: normalizePath "/${_.mountPoint}") (_: normalizePath "/${_.mountPoint}")