tests: refactor to not use args and to use gpt type

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-07-19 19:07:40 +00:00
1 parent c77e66cea1
commit 04452cfd2b
19 files changed
+221 -335

No files matched your search

+13 -18
View File
@@ -1,9 +1,9 @@
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
{
disko.devices = {
disk = {
one = {
type = "disk";
device = builtins.elemAt disks 0;
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
@@ -12,7 +12,7 @@
type = "EF02";
};
ESP = {
size = "128M";
size = "100M";
type = "EF00";
content = {
type = "mdraid";
@@ -31,7 +31,7 @@
};
two = {
type = "disk";
device = builtins.elemAt disks 1;
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
@@ -73,20 +73,15 @@
type = "mdadm";
level = 1;
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "primary";
start = "1MiB";
end = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
type = "gpt";
partitions.primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};