zfs: never use the 6.0 kernel

This commit is contained in:
Sandro Jäckel 2023-02-02 17:49:26 +01:00
parent f0501fae16
commit 4796998461
No known key found for this signature in database
GPG Key ID: B1763F8651144063
1 changed files with 8 additions and 1 deletions

View File

@ -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;
};