Skip to content

Commit

Permalink
zfs_2_3: init at 2.3.0 (#373599)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens authored Jan 14, 2025
2 parents 6ad7602 + 6477277 commit c44bf8b
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
5 changes: 5 additions & 0 deletions nixos/tests/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ in {
kernelPackages = pkgs.linuxPackages;
};

series_2_3 = makeZfsTest {
zfsPackage = pkgs.zfs_2_3;
kernelPackages = pkgs.linuxPackages;
};

unstable = makeZfsTest rec {
zfsPackage = pkgs.zfs_unstable;
kernelPackages = pkgs.linuxPackages;
Expand Down
33 changes: 33 additions & 0 deletions pkgs/os-specific/linux/zfs/2_3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
callPackage,
kernel ? null,
stdenv,
lib,
nixosTests,
...
}@args:

let
stdenv' = if kernel == null then stdenv else kernel.stdenv;
in
callPackage ./generic.nix args {
# You have to ensure that in `pkgs/top-level/linux-kernels.nix`
# this attribute is the correct one for this package.
kernelModuleAttribute = "zfs_2_3";
# check the release notes for compatible kernels
kernelCompatible = kernel: kernel.kernelOlder "6.13";

# this package should point to the latest release.
version = "2.3.0";

tests = {
inherit (nixosTests.zfs) installer series_2_3;
};

maintainers = with lib.maintainers; [
adamcstephens
amarshall
];

hash = "sha256-ZWWrVwMP/DSSIxuXp6GuHCD0wiRekHbRXFGaclqd/ns=";
}
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/zfs/unstable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ callPackage ./generic.nix args {
# 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.3.0-rc5";
version = "2.3.0";
# rev = "";

tests = {
inherit (nixosTests.zfs) unstable;
};

hash = "sha256-gTpj1hYEkx+f/VvvfgeZeqwUhBVQyOIMKic8AaiwYzg=";
hash = "sha256-ZWWrVwMP/DSSIxuXp6GuHCD0wiRekHbRXFGaclqd/ns=";

extraLongDescription = ''
This is "unstable" ZFS, and will usually be a pre-release version of ZFS.
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12556,12 +12556,16 @@ with pkgs;
zfs_2_2 = callPackage ../os-specific/linux/zfs/2_2.nix {
configFile = "user";
};
zfs_2_3 = callPackage ../os-specific/linux/zfs/2_3.nix {
configFile = "user";
};
zfs_unstable = callPackage ../os-specific/linux/zfs/unstable.nix {
configFile = "user";
};
})
zfs_2_1
zfs_2_2
zfs_2_3
zfs_unstable;
zfs = zfs_2_2;

Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/linux-kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@ in {
configFile = "kernel";
inherit pkgs kernel;
};
zfs_2_3 = callPackage ../os-specific/linux/zfs/2_3.nix {
configFile = "kernel";
inherit pkgs kernel;
};
zfs_unstable = callPackage ../os-specific/linux/zfs/unstable.nix {
configFile = "kernel";
inherit pkgs kernel;
Expand Down

0 comments on commit c44bf8b

Please sign in to comment.