Skip to content

Commit

Permalink
zfs: remove kernel 6.0 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 19, 2024
1 parent f73f6d4 commit 34fdf66
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ in
};

config = lib.mkIf cfg.enabled {
boot.kernelPackages =
let
ver = config.boot.zfs.package.latestCompatibleLinuxPackages.kernel.version;
in
# 6.0 has a bug in the bind syscall and does not error correct when the port is already in use
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/7VPNMC77YC3SI5LFYKUA4B5MTFPLTLVB/
# https://lore.kernel.org/stable/CAFsF8vL4CGFzWMb38_XviiEgxoKX0GYup=JiUFXUOmagdk9CRg@mail.gmail.com/
lib.mkIf (cfg.latestCompatibleKernel && lib.versions.majorMinor ver != "6.0") (lib.mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages);
boot.kernelPackages = lib.mkIf cfg.latestCompatibleKernel config.boot.zfs.package.latestCompatibleLinuxPackages;

services.zfs = lib.mkIf cfg.recommendedDefaults {
autoScrub.enable = true;
Expand Down

0 comments on commit 34fdf66

Please sign in to comment.