mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13: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;
|
formatVdev = type: vdev: formatOutput type vdev.mode vdev.members;
|
||||||
formatVdevList = type: vdevs: lib.concatMapStrings
|
formatVdevList = type: vdevs: lib.concatMapStrings
|
||||||
(formatVdev type)
|
(formatVdev type)
|
||||||
(builtins.sort (a: b: a.mode < b.mode) vdevs);
|
(builtins.sort (a: _: a.mode == "") vdevs);
|
||||||
hasTopology = !(builtins.isString config.mode);
|
hasTopology = !(builtins.isString config.mode);
|
||||||
mode = if hasTopology then "prescribed" else config.mode;
|
mode = if hasTopology then "prescribed" else config.mode;
|
||||||
topology = lib.optionalAttrs hasTopology config.mode.topology;
|
topology = lib.optionalAttrs hasTopology config.mode.topology;
|
||||||
|
|||||||
Reference in new issue
Block a user