From 2e19b954ead050387b392c64ef0fe3be60530d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 7 Jun 2024 14:50:26 +0200 Subject: [PATCH] migrate to gpt type from legacy table type --- tests/modules/system-to-install.nix | 38 +++++++++++------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/tests/modules/system-to-install.nix b/tests/modules/system-to-install.nix index 70fd5e3c..d4b38877 100644 --- a/tests/modules/system-to-install.nix +++ b/tests/modules/system-to-install.nix @@ -16,40 +16,30 @@ device = "/dev/vda"; type = "disk"; content = { - type = "table"; - format = "gpt"; - partitions = [ - { - name = "boot"; - start = "0"; - end = "1M"; - part-type = "primary"; - flags = [ "bios_grub" ]; - } - { - name = "ESP"; - start = "1MiB"; - end = "100MiB"; - bootable = true; + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; + ESP = { + size = "100M"; + type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; - } - { - name = "root"; - start = "100MiB"; - end = "100%"; - part-type = "primary"; - bootable = true; + }; + root = { + size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; - } - ]; + }; + }; }; }; };