mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user