Skip to content

Commit

Permalink
zfs: fix maybe getting wrong kernel in latestCompatibleLinuxPackages
Browse files Browse the repository at this point in the history
E.g. might have gotten -rt, -xanmod, etc.
  • Loading branch information
amarshall committed Sep 3, 2024
1 parent c7ff6d7 commit 34e1748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/zfs/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ let
inherit enableMail kernelModuleAttribute;
latestCompatibleLinuxPackages = lib.pipe linuxKernel.packages [
builtins.attrValues
(builtins.filter (kPkgs: (builtins.tryEval kPkgs).success && kPkgs ? kernel && kPkgs.kernel.passthru.isVanilla && kernelCompatible kPkgs.kernel))
(builtins.filter (kPkgs: (builtins.tryEval kPkgs).success && kPkgs ? kernel && kPkgs.kernel.passthru.isVanilla && kPkgs.kernel.pname == "linux" && kernelCompatible kPkgs.kernel))
(builtins.sort (a: b: (lib.versionOlder a.kernel.version b.kernel.version)))
lib.last
];
Expand Down

0 comments on commit 34e1748

Please sign in to comment.