mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
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
|
||||
]
|
||||
++ 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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user