Order mount commands by their path

This commit is contained in:
Manuel Thalmann 2024-06-23 16:33:11 +02:00
parent 468df44b47
commit ea908b5255

View file

@ -308,7 +308,7 @@
(normalizePath "/${rootDir}/${_.mountPoint}")
])
(lib.lists.sortOn
(_: builtins.stringLength _.mountPoint)
(_: normalizePath "/${_.mountPoint}")
(builtins.filter (_: _.mountPoint != null) partitions)));
swapScript = lib.strings.concatLines (