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

zfsStable: don't throw with incompatible kernels #69400

Closed
wants to merge 1 commit into from
Closed

Conversation

teto
Copy link
Member

@teto teto commented Sep 25, 2019

kernel packages get evaluated because of mergeEqualOption. The current
throw prevents from installing 5.3. I replaced it with a warning
instead.

x:371:8:
while evaluating anonymous function at /home/teto/nixpkgs/lib/options.nix:110:23, called from /home/teto/nixpkgs/lib/options.nix:110:10:
while evaluating the attribute 'zfsStable' at /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:152:3:
while evaluating 'common' at /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:20:12, called from /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:152:15:
Linux v5.3 is not yet supported by zfsonlinux v0.8.1.
Try zfsUnstable or set the NixOS option boot.zfs.enableUnstable.
Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

kernel packages get evaluated because of mergeEqualOption. The current
throw prevents from installing 5.3. I replaced it with a warning
instead.

x:371:8:
while evaluating anonymous function at /home/teto/nixpkgs/lib/options.nix:110:23, called from /home/teto/nixpkgs/lib/options.nix:110:10:
while evaluating the attribute 'zfsStable' at /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:152:3:
while evaluating 'common' at /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:20:12, called from /home/teto/nixpkgs/pkgs/os-specific/linux/zfs/default.nix:152:15:
Linux v5.3 is not yet supported by zfsonlinux v0.8.1.
Try zfsUnstable or set the NixOS option boot.zfs.enableUnstable.
@Mic92
Copy link
Member

Mic92 commented Sep 25, 2019

And you do not have zfs enabled somehow?

@teto
Copy link
Member Author

teto commented Sep 25, 2019

I have never used/enabled zfs. To reproduce it should be enough to remove zfs configuration, and set boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest; on a recent nixos-unstable (as long as linux_latest stands for linux 5.3)

@Mic92
Copy link
Member

Mic92 commented Sep 25, 2019

Still a warning is shown. I wonder if there is a better fix.

@joachifm
Copy link
Contributor

Does replacing the throw with setting meta.broken work/improve ux?

@teto
Copy link
Member Author

teto commented Sep 26, 2019

so in my case the error came from libvirtd evaluating it while installing a linux_5_3 so in fact I think the warning was justified, I should just have enabled the unstable one or modified libvirtd to build without zfs (which may be a better long term solution, not everyone needs it with libvirtd).

@teto teto closed this Sep 26, 2019
@teto teto deleted the zfs branch May 13, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants