mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Make vdev sort only move empty modes to the start
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -169,7 +169,7 @@ in
|
||||
formatVdev = type: vdev: formatOutput type vdev.mode vdev.members;
|
||||
formatVdevList = type: vdevs: lib.concatMapStrings
|
||||
(formatVdev type)
|
||||
(builtins.sort (a: b: a.mode < b.mode) vdevs);
|
||||
(builtins.sort (a: _: a.mode == "") vdevs);
|
||||
hasTopology = !(builtins.isString config.mode);
|
||||
mode = if hasTopology then "prescribed" else config.mode;
|
||||
topology = lib.optionalAttrs hasTopology config.mode.topology;
|
||||
|
||||
Reference in new issue
Block a user