mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
Reproduces #130. For new style table the generated script has a few problems for example; ```sh sgdisk \ --new=2:0:+100M \ --change-name=2:disk-vdb-name with spaces \ --typecode=2:EF00 \ /dev/vdb ``` and ```sh mkfs.vfat \ \ /dev/disk/by-partlabel/disk-vdb-name with spaces ``` Legacy table style generates slightly different problems e.g.; ```sh parted -s /dev/vdb -- mkpart name with spaces 1MiB 100MiB ```
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = "/dev/sda";
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "ESP";
|
|
start = "1MiB";
|
|
end = "100MiB";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
name = "name with spaces";
|
|
start = "1MiB";
|
|
end = "100MiB";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/name_with_spaces";
|
|
};
|
|
}
|
|
{
|
|
name = "root";
|
|
start = "100MiB";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|