diff --git a/nixos/tests/zfs.nix b/nixos/tests/zfs.nix index 7851368075a0..418d7aeeda9b 100644 --- a/nixos/tests/zfs.nix +++ b/nixos/tests/zfs.nix @@ -226,8 +226,29 @@ in enableSystemdStage1 = true; }; - installerBoot = (import ./installer.nix { inherit system; }).separateBootZfs; - installer = (import ./installer.nix { inherit system; }).zfsroot; + installerBoot = + (import ./installer.nix { + inherit system; + systemdStage1 = false; + }).separateBootZfs; + + installer = + (import ./installer.nix { + inherit system; + systemdStage1 = false; + }).zfsroot; + + installerBootWithSystemdStage1 = + (import ./installer.nix { + inherit system; + systemdStage1 = true; + }).separateBootZfs; + + installerWithSystemdStage1 = + (import ./installer.nix { + inherit system; + systemdStage1 = true; + }).zfsroot; expand-partitions = makeTest { name = "multi-disk-zfs"; diff --git a/pkgs/os-specific/linux/zfs/2_3.nix b/pkgs/os-specific/linux/zfs/2_3.nix index b28159b0c1ac..bf6701cc0ff8 100644 --- a/pkgs/os-specific/linux/zfs/2_3.nix +++ b/pkgs/os-specific/linux/zfs/2_3.nix @@ -13,10 +13,10 @@ callPackage ./generic.nix args { kernelModuleAttribute = "zfs_2_3"; kernelMinSupportedMajorMinor = "4.18"; - kernelMaxSupportedMajorMinor = "6.19"; + kernelMaxSupportedMajorMinor = "7.0"; # this package should point to the latest release. - version = "2.3.6"; + version = "2.3.7"; tests = { inherit (nixosTests.zfs) series_2_3; @@ -30,5 +30,5 @@ callPackage ./generic.nix args { amarshall ]; - hash = "sha256-5p9UbOQ0WY+XeAO+btDyJ04nRnOQuEuwszduEV7cbso="; + hash = "sha256-67Yo5bAJP3dXC94xybrC4xhwz7pGtrp0MUT9P6OInog="; } diff --git a/pkgs/os-specific/linux/zfs/2_4.nix b/pkgs/os-specific/linux/zfs/2_4.nix index e63787fd7a4b..5752d198e755 100644 --- a/pkgs/os-specific/linux/zfs/2_4.nix +++ b/pkgs/os-specific/linux/zfs/2_4.nix @@ -13,10 +13,10 @@ callPackage ./generic.nix args { kernelModuleAttribute = "zfs_2_4"; kernelMinSupportedMajorMinor = "4.18"; - kernelMaxSupportedMajorMinor = "6.19"; + kernelMaxSupportedMajorMinor = "7.0"; # this package should point to the latest release. - version = "2.4.1"; + version = "2.4.2"; tests = { inherit (nixosTests.zfs) series_2_4; @@ -30,5 +30,5 @@ callPackage ./generic.nix args { amarshall ]; - hash = "sha256-gapM2PNVOjhwGw6TAZF6QDxLza7oqOf1tpj7q0EN9Vg="; + hash = "sha256-OqsKHzyFjjyX8CoajDGydY4TbuQqMA37PIaEOL+vDug="; } diff --git a/pkgs/os-specific/linux/zfs/generic.nix b/pkgs/os-specific/linux/zfs/generic.nix index ea017985f78e..1dc98829da38 100644 --- a/pkgs/os-specific/linux/zfs/generic.nix +++ b/pkgs/os-specific/linux/zfs/generic.nix @@ -4,6 +4,7 @@ let lib, stdenv, fetchFromGitHub, + fetchpatch2, autoreconfHook269, util-linux, nukeReferences, @@ -99,7 +100,12 @@ let inherit rev hash; }; - patches = extraPatches; + patches = + extraPatches + ++ lib.optional (kernel != null && lib.versionOlder kernel.version "5.14") (fetchpatch2 { + url = "https://github.com/openzfs/zfs/commit/58c8dc5f6926eb96903a3f38b141e8998ef9261b.patch?full_index=1"; + hash = "sha256-eYkMhHsHBA9MKXnB/GuHpuv44g1SCGV5Or0InPBeNkU="; + }); postPatch = optionalString buildKernel '' diff --git a/pkgs/os-specific/linux/zfs/unstable.nix b/pkgs/os-specific/linux/zfs/unstable.nix index 698c3ba41646..f72e792a16c0 100644 --- a/pkgs/os-specific/linux/zfs/unstable.nix +++ b/pkgs/os-specific/linux/zfs/unstable.nix @@ -10,20 +10,20 @@ callPackage ./generic.nix args { kernelModuleAttribute = "zfs_unstable"; kernelMinSupportedMajorMinor = "4.18"; - kernelMaxSupportedMajorMinor = "6.19"; + kernelMaxSupportedMajorMinor = "7.0"; # this package should point to a version / git revision compatible with the latest kernel release # IMPORTANT: Always use a tagged release candidate or commits from the # zfs--staging branch, because this is tested by the OpenZFS # maintainers. - version = "2.4.1"; + version = "2.4.2"; # rev = ""; tests = { inherit (nixosTests.zfs) unstable; }; - hash = "sha256-gapM2PNVOjhwGw6TAZF6QDxLza7oqOf1tpj7q0EN9Vg="; + hash = "sha256-OqsKHzyFjjyX8CoajDGydY4TbuQqMA37PIaEOL+vDug="; extraLongDescription = '' This is "unstable" ZFS, and will usually be a pre-release version of ZFS.