mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00: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:
parent
423b86a7f7
commit
05f4e223b5
1 changed files with 13 additions and 1 deletions
|
@ -45,7 +45,19 @@ in
|
|||
};
|
||||
priority = lib.mkOption {
|
||||
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";
|
||||
};
|
||||
name = lib.mkOption {
|
||||
|
|
Loading…
Reference in a new issue