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
grub2: set zfsSupport false by default #30192
Conversation
Can you run the installer tests with this? |
Do we want a separate derivation for |
@grahamc give me some time until tonight, my workstation is building some other stuff first. @Mic92 I would like to have a separate one to keep the image size small. Please check
where pkg.grub2 is nixpkgs/pkgs/top-level/all-packages.nix Lines 2233 to 2235 in 631ec73
and 2.0.nix defines zfsSupport as default nixpkgs/pkgs/tools/misc/grub/2.0x.nix Line 5 in eb9f427
Am I not thinking it right? |
@jokogr looks good to me then. |
Can't it still potentially break existing systems, if some hasn't specified I would imagine you could set the default to something like:
and have it still work. |
In the zfs module there is a check:
which enables grub support. |
@grahamc on my nixpkgs (nixos-unstable channel + some WIP of mine) it appears there is no network connection and the build fails:
Any ideas how I could move on? |
@grahamc the tests succeed after adding to the test the following line (thanks niksnut):
|
@jokogr why do we need to make that change to the paths in nix db? If the logic behind enabling ZFS was correct, it seems weird we'd need to do anything special for the test to work. |
@grahamc the test vms do not have internet access and thus they cannot build any package. Since my nixpkgs do not have grub2 with zfsSupport, the test vm tries to build it and fails. |
Ok, then that should be part of this PR :) |
@grahamc ok, I will do so, then. Should we also have this package in the official binary cache, so that people who want to use Grub and ZFS do not have to build it during installation? If so, should I make another change? |
Success on x86_64-linux Attempted: tests.installer No partial log is available. |
Success on aarch64-linux Attempted: tests.installer No partial log is available. |
So, not just python2, but nfs-utils, too Regarding this: "Should we also have this package in the official binary cache, so that people who want to use Grub and ZFS do not have to build it during installation?" How to include in the official cache two versions of Grub2? Otherwise, tests would fail. |
Motivation for this change
Fixes #11533
A basic, ext4-based system with grub2 was pulling zfs and python2 derivations.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)