fix: adjust part* functions for disko type=gpt
This commit is contained in:
parent
3255475eb6
commit
0f4e5f7391
1 changed files with 17 additions and 10 deletions
|
@ -14,30 +14,37 @@ _inputs: final: prev: {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gpt = {
|
gpt = rec {
|
||||||
partGrub = start: end: {
|
partGrub = {
|
||||||
inherit start end;
|
priority = 1;
|
||||||
|
size = "1M";
|
||||||
type = "ef02";
|
type = "ef02";
|
||||||
};
|
};
|
||||||
partEfi = start: end: {
|
partEfi = size: {
|
||||||
inherit start end;
|
inherit size;
|
||||||
|
priority = 1000;
|
||||||
type = "ef00";
|
type = "ef00";
|
||||||
hybrid.mbrBootableFlag = true;
|
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
partSwap = start: end: {
|
partBoot = size:
|
||||||
inherit start end;
|
partEfi size
|
||||||
|
// {
|
||||||
|
hybrid.mbrBootableFlag = true;
|
||||||
|
};
|
||||||
|
partSwap = size: {
|
||||||
|
inherit size;
|
||||||
|
priority = 2000;
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
randomEncryption = true;
|
randomEncryption = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
partLuksZfs = luksName: pool: start: end: {
|
partLuksZfs = luksName: pool: size: {
|
||||||
inherit start end;
|
inherit size;
|
||||||
content = final.lib.disko.content.luksZfs luksName pool;
|
content = final.lib.disko.content.luksZfs luksName pool;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue