Skip to content
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

zfs: Make latestCompatibleLinuxPackages always point at a vanilla kernel #342176

Closed
wants to merge 1 commit into from

Conversation

shelvacu
Copy link
Contributor

@shelvacu shelvacu commented Sep 16, 2024

As it was before, this would filter all available kernel packages and pick the one with the highest version that was supported by zfs. This included variants like linux_libre and linux_rt. When multiple kernels of the same version were available, the choice of which one was selected was ill-defined (determined by ordering of attrs I think).

The result was that while zfs support was lagging behind the latest LTS, this almost always pointed at a mainline kernel, but since 636134b it pointed at a linux_libre. This is effectively a breaking change, so should be avoided.

Things done

  • Built on platform(s)
    • x86_64-linux
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation labels Sep 16, 2024
@shelvacu
Copy link
Contributor Author

pinging @amarshall listed as a maintainer

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Sep 16, 2024
@MarcelCoding
Copy link
Member

The change causing this problem apparently also reached stable (i laned on -gnu) which breaks my graphics support. Please backport this PR also to 24.05.

@MarcelCoding
Copy link
Member

I've tested your pull request by cherry picking it manually onto stable. It restores expedited behavior. 👍

@SuperSandro2000 SuperSandro2000 added 1.severity: blocker This is preventing another PR or issue from being completed and removed 1.severity: blocker This is preventing another PR or issue from being completed labels Sep 16, 2024
As it was before, this would filter all available kernel packages and pick the one with the highest version that was supported by zfs. This included variants like linux_libre and linux_rt. When multiple kernels of the same version were available, the choice of which one was selected was ill-defined (determined by ordering of attrs I think).

The result was that while zfs support was lagging behind the latest LTS, this almost always pointed at a vanilla kernel, but since 636134b it pointed at a linux_libre. This is effectively a breaking change, so should be avoided.
@shelvacu shelvacu force-pushed the patch-fix-zfs-kernel-version branch from 8d71f19 to af2e61e Compare September 16, 2024 21:15
@shelvacu shelvacu requested a review from amarshall September 16, 2024 21:16
@shelvacu shelvacu changed the title zfs: Make latestCompatibleLinuxPackages always point at a mainline ke… zfs: Make latestCompatibleLinuxPackages always point at a vanilla kernel Sep 17, 2024
@adamcstephens
Copy link
Contributor

Superseded by #342495 and #341596

@amarshall
Copy link
Member

amarshall commented Sep 18, 2024

It still might be valuable to have this merged for correctness while we discuss the deprecation, but I could go either way. Superseding PR is merged.

@shelvacu shelvacu deleted the patch-fix-zfs-kernel-version branch September 28, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants