mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +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 ```
42 lines
964 B
Nix
42 lines
964 B
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = "/dev/disk/by-id/some-disk-id";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
"name with spaces" = {
|
|
type = "EF00";
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/name_with_spaces";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|