-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
zfs_2_2: 2.2.7 -> 2.2.8 #416236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
zfs_2_2: 2.2.7 -> 2.2.8 #416236
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,33 @@ | ||
| { | ||
| callPackage, | ||
| kernel ? null, | ||
| stdenv, | ||
| lib, | ||
| nixosTests, | ||
| stdenv, | ||
| ... | ||
| }@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_2"; | ||
| # check the release notes for compatible kernels | ||
| kernelCompatible = kernel: kernel.kernelOlder "6.13"; | ||
| kernelCompatible = kernel: kernel.kernelOlder "6.16"; | ||
|
|
||
| # this package should point to the latest release. | ||
| version = "2.2.7"; | ||
| version = "2.2.8"; | ||
|
|
||
| tests = { | ||
| inherit (nixosTests.zfs) installer series_2_2; | ||
| }; | ||
| tests = | ||
| { | ||
| inherit (nixosTests.zfs) series_2_2; | ||
| } | ||
| // lib.optionalAttrs stdenv.isx86_64 { | ||
| inherit (nixosTests.zfs) installer; | ||
| }; | ||
|
|
||
| maintainers = with lib.maintainers; [ | ||
| adamcstephens | ||
| amarshall | ||
| ]; | ||
|
|
||
| hash = "sha256-nFOB0/7YK4e8ODoW9A+RQDkZHG/isp2EBOE48zTaMP4="; | ||
| hash = "sha256-ZYgC8L4iI9ewaC7rkMFSRAKeTWr72N5aRP98VLL4oqo="; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ let | |
| pkg-config, | ||
| curl, | ||
| pam, | ||
| nix-update-script, | ||
|
|
||
| # Kernel dependencies | ||
| kernel ? null, | ||
|
|
@@ -263,22 +264,31 @@ let | |
|
|
||
| outputs = [ "out" ] ++ optionals buildUser [ "dev" ]; | ||
|
|
||
| passthru = { | ||
| inherit kernel; | ||
| inherit enableMail kernelModuleAttribute; | ||
| latestCompatibleLinuxPackages = lib.warn "zfs.latestCompatibleLinuxPackages is deprecated and is now pointing at the default kernel. If using the stable LTS kernel (default `linuxPackages` is not possible then you must explicitly pin a specific kernel release. For example, `boot.kernelPackages = pkgs.linuxPackages_6_6`. Please be aware that non-LTS kernels are likely to go EOL before ZFS supports the latest supported non-LTS release, requiring manual intervention." linuxPackages; | ||
|
|
||
| # The corresponding userspace tools to this instantiation | ||
| # of the ZFS package set. | ||
| userspaceTools = genericBuild ( | ||
| outerArgs | ||
| // { | ||
| configFile = "user"; | ||
| } | ||
| ) innerArgs; | ||
|
|
||
| inherit tests; | ||
| }; | ||
| passthru = | ||
| { | ||
| inherit kernel; | ||
| inherit enableMail kernelModuleAttribute; | ||
| latestCompatibleLinuxPackages = lib.warn "zfs.latestCompatibleLinuxPackages is deprecated and is now pointing at the default kernel. If using the stable LTS kernel (default `linuxPackages` is not possible then you must explicitly pin a specific kernel release. For example, `boot.kernelPackages = pkgs.linuxPackages_6_6`. Please be aware that non-LTS kernels are likely to go EOL before ZFS supports the latest supported non-LTS release, requiring manual intervention." linuxPackages; | ||
|
|
||
| # The corresponding userspace tools to this instantiation | ||
| # of the ZFS package set. | ||
| userspaceTools = genericBuild ( | ||
| outerArgs | ||
| // { | ||
| configFile = "user"; | ||
| } | ||
| ) innerArgs; | ||
|
|
||
| inherit tests; | ||
| } | ||
| // lib.optionalAttrs (kernelModuleAttribute != "zfs_unstable") { | ||
| updateScript = nix-update-script { | ||
| extraArgs = [ | ||
| "--version-regex=^zfs-(${lib.versions.major version}\\.${lib.versions.minor version}\\.[0-9]+)" | ||
| "--override-filename=pkgs/os-specific/linux/zfs/${lib.versions.major version}_${lib.versions.minor version}.nix" | ||
| ]; | ||
| }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ |
||
| }; | ||
|
|
||
| meta = { | ||
| description = "ZFS Filesystem Linux" + (if buildUser then " Userspace Tools" else " Kernel Module"); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZFS often has a
x.y.99tag that is mutable and not an actual release—can we skip that somehow? Something not-great-but-probably-fine like[0-8]?[0-9]perhaps? But I think that nix-update actually only uses GitHub releases, not tags, so it doesn’t matter.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it can/does use tags as well. Looking through the previous tags, I'm not sure if this will be a problem in practice. Upstream seems to tag x.x.99 during the RC cycle, for whatever reason, and since this logic is pinned to only stable releases and matching versions, I don't suspect problems. I suggest we merge as-is, and if the bot messes up a PR we can address then. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also as a singular data point, I used this updater to do the update, and it did not pick up the older 2.2.99. I think nix-update only fetches a page or two of releases/tags, and favors newest by time anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I think it should be fine, bringing it up to at least discuss it and validate 🙂