From 0181189238afecb1c55174e54bd3f1a537cff7ca Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 23 Jun 2024 16:33:11 +0200 Subject: [PATCH] Order mount commands by their path --- lib/modules/partition.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix index 4c62b929..774d32be 100644 --- a/lib/modules/partition.nix +++ b/lib/modules/partition.nix @@ -308,7 +308,7 @@ (normalizePath "/${rootDir}/${_.mountPoint}") ]) (lib.lists.sortOn - (_: builtins.stringLength _.mountPoint) + (_: normalizePath "/${_.mountPoint}") (builtins.filter (_: _.mountPoint != null) partitions))); swapScript = lib.strings.concatLines (