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:
parent
fe111fc679
commit
5828d54356
|
@ -325,10 +325,13 @@ let
|
||||||
curl
|
curl
|
||||||
]
|
]
|
||||||
++ optional (bootLoader == "grub" && grubVersion == 1) pkgs.grub
|
++ optional (bootLoader == "grub" && grubVersion == 1) pkgs.grub
|
||||||
++ optionals (bootLoader == "grub" && grubVersion == 2) [
|
++ optionals (bootLoader == "grub" && grubVersion == 2) (let
|
||||||
(pkgs.grub2.override { zfsSupport = true; })
|
zfsSupport = lib.any (x: x == "zfs")
|
||||||
(pkgs.grub2_efi.override { zfsSupport = true; })
|
(extraInstallerConfig.boot.supportedFilesystems or []);
|
||||||
];
|
in [
|
||||||
|
(pkgs.grub2.override { inherit zfsSupport; })
|
||||||
|
(pkgs.grub2_efi.override { inherit zfsSupport; })
|
||||||
|
]);
|
||||||
|
|
||||||
nix.binaryCaches = mkForce [ ];
|
nix.binaryCaches = mkForce [ ];
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
|
|
Loading…
Reference in New Issue