Mount ntfs
disks using ntfs3
This commit is contained in:
parent
81c06bf5e0
commit
5987f326cc
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue