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";
device = builtins.elemAt disks 0;
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "boot";
start = "0";
end = "1M";
flags = [ "bios_grub" ];
}
{
name = "ESP";
start = "1M";
end = "512M";
bootable = true;
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "511M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "512M";
end = "100%";
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
};