Skip to content

Commit

Permalink
fix(nixos/sys): Switch Linux kernel from latest ZFS supported version…
Browse files Browse the repository at this point in the history
… to latest LTS kernel

`zfs.package.latestCompatibleLinuxPackages` was recently bumped to 5.18
[0] in nixpkgs nixos-22.05, however that kernel release includes a
change [1] that causes ZFS to fail to compile [2] [3]. To workaround
this, downgrade the kernel to 5.15, until an OpenZFS release that
includes the bug fix [4] is released.

[0]: NixOS/nixpkgs#178830
[1]: https://patchwork.kernel.org/project/linux-kbuild/patch/[email protected]/
[2]: https://github.com/PetarKirov/dotfiles/runs/7166609186?check_suite_focus=true
[3]: openzfs/zfs#13528
[4]: openzfs/zfs@ff7e405
  • Loading branch information
PetarKirov committed Jul 3, 2022
1 parent 6e4bf27 commit 2623c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/sys/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgs,
...
}: {
boot.kernelPackages = pkgs.lib.mkOverride 1 config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelPackages = pkgs.lib.mkOverride 1 linuxKernel.packages.linux_5_15;
boot.kernel.sysctl."kernel.perf_event_paranoid" = 1;
boot.supportedFilesystems = ["zfs"];
boot.zfs.forceImportRoot = false;
Expand Down

0 comments on commit 2623c57

Please sign in to comment.