zfs_2_4: 2.4.1 -> 2.4.2; zfs_2_3: 2.3.6 -> 2.3.7; nixosTests.zfs: fix and test with systemd stage 1 (#519944)

This commit is contained in:
Adam C. Stephens
2026-05-14 03:08:42 +00:00
committed by GitHub
5 changed files with 39 additions and 12 deletions
+23 -2
View File
@@ -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";
+3 -3
View File
@@ -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=";
}
+3 -3
View File
@@ -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=";
}
+7 -1
View File
@@ -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 ''
+3 -3
View File
@@ -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-<version>-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.