README: fix disko instructions (use new format)

This commit is contained in:
Sebastian Hasler 2023-08-18 20:41:42 +02:00
parent 5cdd6d6d26
commit df9ccafddb

View File

@ -103,37 +103,29 @@ Heres an example of a simple disk configuration:
type = "disk"; type = "disk";
device = builtins.elemAt disks 0; device = builtins.elemAt disks 0;
content = { content = {
type = "table"; type = "gpt";
format = "gpt"; partitions = {
partitions = [ boot = {
{ size = "1M";
name = "boot"; type = "EF02"; # for grub MBR
start = "0"; };
end = "1M"; ESP = {
flags = [ "bios_grub" ]; size = "511M";
}
{
name = "ESP";
start = "1M";
end = "512M";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
}; };
} };
{ root = {
name = "root"; size = "100%";
start = "512M";
end = "100%";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
mountpoint = "/"; mountpoint = "/";
}; };
} };
]; };
}; };
}; };
}; };