diff options
author | aszlig <aszlig@nix.build> | 2022-09-16 14:52:54 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2022-09-16 14:58:31 +0200 |
commit | 373feb46cffabdbf76079789c1b60f2ebf8ba87e (patch) | |
tree | bef374be3a4fc95f394a8d37fbfaad1375b16331 /nixos/tests/zfs.nix | |
parent | 58770a334d23bd3ea17b640b250d506da2316644 (diff) |
nixos: Only use compatible kernels for ZFS tests
Right now, the latest kernel is version 5.19, for which there is no compatible upstream release for ZFS. However, our NixOS VM test always uses linuxPackages_latest and thus will fail with an evaluation error most of the time when a new mainline kernel is released. Since we expose a latestCompatibleLinuxPackages attribute for the ZFS packages, we already know what's the latest kernel version that is supported so let's use that instead of linuxPackages_latest. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'nixos/tests/zfs.nix')
-rw-r--r-- | nixos/tests/zfs.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/zfs.nix b/nixos/tests/zfs.nix index 0b44961a3deb5..29df691cecbed 100644 --- a/nixos/tests/zfs.nix +++ b/nixos/tests/zfs.nix @@ -8,7 +8,9 @@ with import ../lib/testing-python.nix { inherit system pkgs; }; let makeZfsTest = name: - { kernelPackage ? if enableUnstable then pkgs.linuxPackages_latest else pkgs.linuxPackages + { kernelPackage ? if enableUnstable + then pkgs.zfsUnstable.latestCompatibleLinuxPackages + else pkgs.linuxPackages , enableUnstable ? false , extraTest ? "" }: |