nixos/tests/installer: fix ZFS tests

after a2e55e31d6, `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.
This commit is contained in:
Leona Maroni
2026-05-29 16:47:39 +02:00
parent d8442692d5
commit c5feb3c424

View File

@@ -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 = ''