nixosTests.installer: fix non-zfs grub tests

Now that grub2 is built without zfs support when possible, this is a
separate store path which may need to be made available to the installer.
This commit is contained in:
Ryan Burns 2021-02-12 19:33:46 -08:00
parent fe111fc679
commit 5828d54356

View File

@ -325,10 +325,13 @@ let
curl
]
++ optional (bootLoader == "grub" && grubVersion == 1) pkgs.grub
++ optionals (bootLoader == "grub" && grubVersion == 2) [
(pkgs.grub2.override { zfsSupport = true; })
(pkgs.grub2_efi.override { zfsSupport = true; })
];
++ optionals (bootLoader == "grub" && grubVersion == 2) (let
zfsSupport = lib.any (x: x == "zfs")
(extraInstallerConfig.boot.supportedFilesystems or []);
in [
(pkgs.grub2.override { inherit zfsSupport; })
(pkgs.grub2_efi.override { inherit zfsSupport; })
]);
nix.binaryCaches = mkForce [ ];
nix.extraOptions = ''