mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
gpt: move boot partitions to the front of disko
Than we no longer need to do this in our examples. Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
1 parent
423b86a7f7
commit
05f4e223b5
1 file changed
+13
-1
+13
-1
@@ -45,7 +45,19 @@ in
|
|||||||
};
|
};
|
||||||
priority = lib.mkOption {
|
priority = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.int;
|
||||||
default = if (partition.config.size or "" == "100%") then 9001 else 1000;
|
default = if partition.config.size or "" == "100%" then
|
||||||
|
9001
|
||||||
|
else if partition.config.type == "EF02" then
|
||||||
|
# Boot partition should be created first, because some BIOS implementations require it.
|
||||||
|
# Priority defaults to 100 here to support any potential use-case for placing partitions prior to EF02
|
||||||
|
100
|
||||||
|
else
|
||||||
|
1000;
|
||||||
|
defaultText = ''
|
||||||
|
1000: normal partitions
|
||||||
|
9001: partitions with 100% size
|
||||||
|
100: boot partitions (EF02)
|
||||||
|
'';
|
||||||
description = "Priority of the partition, smaller values are created first";
|
description = "Priority of the partition, smaller values are created first";
|
||||||
};
|
};
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
|
|||||||
Reference in new issue
Block a user