-
-
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
nixos/zfs: still pulls in zfsStable when enableUnstable #109001
Comments
The old version of ZFS seems to be drawn into the closure by libvirt, Docker and GRUB on my machine. |
Those are just the pkg versions though, not the modules we care about. The old modules are not actually in the drv but they're still being evaluated in If you remove the |
This could be solved by having an read-only option set by the zfs module similar to config.systemd.package and having this option beeing used in other modules i.e. libvirt and docker. |
As I said, those are the ZFS packages, not modules. They're independent of the kernel. We should still have a look into that as there might be incompatibilities in libvirt and Docker when they're compiled against a different ZFS version from the kernel module that's running in the system but that's a separate issue. The actual problem seems to be that zfsStable is somehow evaluated in |
If you look at the definition of modules in the kernel packages, you have
So I went and removed This is my diff:
Opinions? |
What do you think of that ^ |
For some packages we could remove the zfs dependency in the package and only add it at runtime. |
See above issue for that discussion, this is a separate problem. |
`throw` aborts eval when the package is touched in inappropriate places. See NixOS#109001 for an adverse instance of that. ZFS now behaves like a regular broken package when it's, you know, broken. It also still prints the helpful incompatibility notice when fully evaluated.
`throw` aborts eval when the package is touched in inappropriate places. See NixOS#109001 for an adverse instance of that. ZFS now behaves like a regular broken package when it's, you know, broken. It also still prints the helpful incompatibility notice when fully evaluated. (cherry picked from commit aa58df5)
I marked this as stale due to inactivity. → More info |
Describe the bug
A clear and concise description of what the bug is.
When you set boot.zfs.enableUnstable, zfsUnstable is used but zfsStable is still put into the system closure. This causes an abort when the kernel is marked as incompatible with zfsStable which is very confusing because it should only be using zfsUnstable.
This only happens on 20.09, not on master.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
#108944
Notify maintainers
@Mic92 @NeQuissimus
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: