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
commit c5feb3c424
No known key found for this signature in database
GPG key ID: D3F9FFE1FE3BD37D

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