-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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: fix evaluation and build on aarch64 systems #237873
Conversation
0e9c101
to
d21b935
Compare
As of now latestCompatibleLinuxPackages points to broken version on aarch64-linux. |
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 tried to test this PR with the following config, which I think is fairly standard.
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.zfs.removeLinuxDRM = true;
This still results in using 6.1, but also attempts to apply the patch which of course fails. This PR overrides the zfs package with removeLinuxDRM
before it is passed to extraModulePackages
, but this has no effect on the value of boot.zfs.package
or pkgs.zfs
, which are normally used to choose the proper kernel packages.
# this symbol. | ||
# In the meantime, we restore what was once a working piece of code | ||
# in the kernel. | ||
boot.kernelPatches = lib.optional (cfgZfs.removeLinuxDRM && pkgs.stdenv.hostPlatform.system == "aarch64-linux") { |
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 this should only apply the patch if the kernel is at least 6.2
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.
Its not possible to check the kernel version here. This will lead to infinite recursion.
Yes. This is a convoluted mess:
If you have a better idea... I don't have one. There is too many dependencies between the nixos module system, kernel packages and zfs. |
Introduced in torvalds/linux@aaeca98 with the usual disdain for ZFS. We have been there in the past with <https://www.phoronix.com/news/NixOS-Linux-5.0-ZFS-FPU-Drop> / NixOS#61076. This fixes ZFS on aarch64 until the next breakage. See openzfs/zfs#14555 for original upstream issue.
I made this more explicit in the option description. Please have a look. |
friendly bump @RaitoBezarius @lopsided98 |
I will take responsibility. |
Backport failed for Please cherry-pick the changes locally. git fetch origin release-23.05
git worktree add -d .worktree/backport-237873-to-release-23.05 origin/release-23.05
cd .worktree/backport-237873-to-release-23.05
git checkout -b backport-237873-to-release-23.05
ancref=$(git merge-base f8dc6d000bdb41a51a16feb86b53352b5fc58f31 d4cab20b3a76fef4b9a487c37107df6351ebce33)
git cherry-pick -x $ancref..d4cab20b3a76fef4b9a487c37107df6351ebce33 |
Are there plans to backport this to |
We are too close to 23.11 that I can take care of this. You are free to open a backport PR as long as it complies with the backport policies. |
hi, is this fixed for 23.11 ? |
Yes, this is fixed in NixOS 23.11. You have to enable the |
This is blocking: nix-community/nixos-images#115
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)