about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJared Baur <jaredbaur@fastmail.com>2024-01-26 22:27:50 -0800
committerJared Baur <jaredbaur@fastmail.com>2024-01-27 17:20:04 -0800
commit0bf5f3be2512b2770bb8c4f45a7b7b1956909300 (patch)
tree9b000efa43c894c83e45fda380788f572cbf1d0f /nixos/tests
parent4e139026b506e2339c6ce224e2f7ad1e4bb4fa4b (diff)
downloadnixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar.gz
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar.bz2
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar.lz
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar.xz
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.tar.zst
nixlib-0bf5f3be2512b2770bb8c4f45a7b7b1956909300.zip
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.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/appliance-repart-image.nix2
1 files changed, 2 insertions, 0 deletions
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 =