simple-efi example in HowTo.md to new disko API

This commit is contained in:
cvoges12 authored and mergify[bot] committed 2023-09-26 14:09:43 +00:00
1 parent 2bf4fc166b
commit 07dd3af980
1 file changed
+14 -19
+14 -19
View File
@@ -113,37 +113,32 @@ or with pinning:
{ {
# checkout the example folder for how to configure different disko layouts # checkout the example folder for how to configure different disko layouts
disko.devices = { disko.devices = {
disk.sda = { disk = {
device = "/dev/sda"; vdb = {
device = "/dev/disk/by-id/some-disk-id";
type = "disk"; type = "disk";
content = { content = {
type = "table"; type = "gpt";
format = "gpt"; partitions = {
partitions = [ ESP = {
{ type = "EF00";
name = "ESP"; size = "100M";
start = "1MiB";
end = "100MiB";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
}; };
} };
{ root = {
name = "root"; size = "100%";
start = "100MiB";
end = "100%";
part-type = "primary";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
}; };
} };
]; };
};
}; };
}; };
}; };