From 0bf5f3be2512b2770bb8c4f45a7b7b1956909300 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Fri, 26 Jan 2024 22:27:50 -0800 Subject: [PATCH] appliance-repart-image: fix OVMF not detecting disk With the update of systemd to v255, the repart tool switched to use 4K sector sizes by default. This change sets the appliance-repart-image test to use a sector size of 512B to fit in with the existing NixOS VM test infrastructure using qemu disks with 512B sector sizes. --- nixos/tests/appliance-repart-image.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/appliance-repart-image.nix b/nixos/tests/appliance-repart-image.nix index b18968d3b963..861369b9f3ca 100644 --- a/nixos/tests/appliance-repart-image.nix +++ b/nixos/tests/appliance-repart-image.nix @@ -40,6 +40,8 @@ in image.repart = { name = "appliance-gpt-image"; + # OVMF does not work with the default repart sector size of 4096 + sectorSize = 512; partitions = { "esp" = { contents =