diff --git a/modules/zfs.nix b/modules/zfs.nix index 50f7d94..e643da6 100644 --- a/modules/zfs.nix +++ b/modules/zfs.nix @@ -10,7 +10,14 @@ in config = lib.mkIf (cfg.recommendedDefaults && cfg.enabled) { boot = { - kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; + 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 (lib.versions.majorMinor ver != "6.0") config.boot.zfs.package.latestCompatibleLinuxPackages; zfs.forceImportRoot = false; };