Order mount commands by their path

This commit is contained in:
Manuel Thalmann 2024-06-23 16:33:11 +02:00
parent 633f3a6e5c
commit 0181189238

View file

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