From c5feb3c42401a55ccdae55d1aad7c2a5a35a9612 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Fri, 29 May 2026 16:47:39 +0200 Subject: [PATCH] nixos/tests/installer: fix ZFS tests after a2e55e31d6b, `boot.zfs.forceImportRoot` defaults to false. This leads to the ZFS installer tests failing as they have differnt hostids in install and boot and the filesystem doesn't get exported properly. This change sets the hostid, so that an import without --force works. --- nixos/tests/installer.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index f1e1788127cb..531d075d75cf 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -1276,6 +1276,7 @@ in separateBootZfs = makeInstallerTest "separateBootZfs" { extraInstallerConfig = { boot.supportedFilesystems = [ "zfs" ]; + networking.hostId = "00000000"; }; extraConfig = '' @@ -1348,6 +1349,7 @@ in zfsroot = makeInstallerTest "zfs-root" { extraInstallerConfig = { boot.supportedFilesystems = [ "zfs" ]; + networking.hostId = "00000000"; }; extraConfig = ''