Skip to content

Commit be8077c

Browse files
Mic92mergify[bot]
authored andcommitted
migrate to gpt type from legacy table type
1 parent 3eb37ae commit be8077c

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

tests/modules/system-to-install.nix

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,36 @@
99
hardware.enableAllFirmware = false;
1010
networking.hostId = "8425e349"; # from profiles/base.nix, needed for zfs
1111
boot.zfs.devNodes = "/dev/disk/by-uuid"; # needed because /dev/disk/by-id is empty in qemu-vms
12-
boot.loader.grub.devices = [ "/dev/vda" ];
1312
disko.devices = {
1413
disk = {
1514
vda = {
1615
device = "/dev/vda";
1716
type = "disk";
1817
content = {
19-
type = "table";
20-
format = "gpt";
21-
partitions = [
22-
{
23-
name = "boot";
24-
start = "0";
25-
end = "1M";
26-
part-type = "primary";
27-
flags = [ "bios_grub" ];
28-
}
29-
{
30-
name = "ESP";
31-
start = "1MiB";
32-
end = "100MiB";
33-
bootable = true;
18+
type = "gpt";
19+
partitions = {
20+
boot = {
21+
size = "1M";
22+
type = "EF02";
23+
};
24+
ESP = {
25+
size = "100M";
26+
type = "EF00";
3427
content = {
3528
type = "filesystem";
3629
format = "vfat";
3730
mountpoint = "/boot";
3831
};
39-
}
40-
{
41-
name = "root";
42-
start = "100MiB";
43-
end = "100%";
44-
part-type = "primary";
45-
bootable = true;
32+
};
33+
root = {
34+
size = "100%";
4635
content = {
4736
type = "filesystem";
4837
format = "ext4";
4938
mountpoint = "/";
5039
};
51-
}
52-
];
40+
};
41+
};
5342
};
5443
};
5544
};

0 commit comments

Comments
 (0)