Mount nested partitions last

This commit is contained in:
Manuel Thalmann 2024-06-23 16:15:34 +02:00
parent 16ba58d6ea
commit 468df44b47

View file

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