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
+24 -29
+24 -29
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 = {
type = "disk"; device = "/dev/disk/by-id/some-disk-id";
content = { type = "disk";
type = "table"; content = {
format = "gpt"; type = "gpt";
partitions = [ partitions = {
{ ESP = {
name = "ESP"; type = "EF00";
start = "1MiB"; size = "100M";
end = "100MiB"; content = {
bootable = true; type = "filesystem";
content = { format = "vfat";
type = "filesystem"; mountpoint = "/boot";
format = "vfat"; };
mountpoint = "/boot";
}; };
} root = {
{ size = "100%";
name = "root"; content = {
start = "100MiB"; type = "filesystem";
end = "100%"; format = "ext4";
part-type = "primary"; mountpoint = "/";
bootable = true; };
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
}; };
} };
]; };
}; };
}; };
}; };