Open YellowOnion opened 2 years ago
Send your config
Send your config
Sorry I should have sent this earlier, I was trying to bisect it to see if I could pinpoint the problem.
I think it's because the bcachefs kernel is marked as broken in unstable.
Update:
Disabling the kernel overlays, driSupport, and enabling broken packages still end up with the CONFIG errors, but the driSupport error goes away.
Update 2: So I'm gonna go on a hunch and say that assertions are thrown before overlays are applied, so you can't even replace a broken kernel?
I wonder if #144930 will fix this.
Update 3: yes broken kernels throw assertion before overlays are applied. above pull request fixed this.
So what's the way out of this broken state, in case you can't boot earlier kernel?
It looks like an override to linux_testing_bcachefs
in overlays aren't working at all, I've been banging my head against a wall wondering why my patches are being ignored.
And because the kernel version is hard coded (no way to "force" my package with boot.kernelPackage) I'm stuck with an unusable system until the latest bcachefs is merged upstream.
@Artturin
Can someone try overriding the version string of their kernel in an overlay and see if nixos-rebuild actually bothers to change it or starts a rebuild with the old version?
boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_5_10.override {
argsOverride = rec {
src = pkgs.fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "sha256-R/zqmWwMAeWKxfhS/Cltd6NJbFUPMDQVL+536Drjj9o=";
};
version = "5.12.15";
modDirVersion = "5.12.15";
};
});
have you tried something like this ( used my doc-repos script to find it https://github.com/Artturin/nixos-related-things doc-repos "linux.+override"
)
https://nixos.wiki/wiki/Nixpkgs/Reviewing_changes#Pre-flakes this may work
@Artturin The problem is that I need to override linux_testing_bcachefs
because the bcachefs module has boot.kernelPackages
hard coded to that. If I try the above it throws an error message.
Specifying mkForce 0 customKernelPkg
seems to fix the error, but that seems kinda hacky?
Upon further inspection, linux_5_15
isn't exported by nixpkgs, linux_latest.version
shows v5.15.1.
@YellowOnion The Linux kernels were recently moved into the linuxKernel
subattribute, with the top-level ones being merely aliases. The bcachefs module uses linuxPackages_testing_bcachefs
, which is now an alias for linuxKernel.packages.linux_testing_bcachefs
which uses linuxKernel.kernels.linux_testing_bcachefs
.
You can override them by overriding that linuxKernel
attribute, like so:
(final: super: {
linuxKernel = super.linuxKernel // {
kernels = super.linuxKernel.kernels // {
linux_testing_bcachefs = [...];
};
};
} )
@hyperfekt sadly I get:
error: attribute 'override' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/kernel.nix:41:18
Describe the bug
Note for some reason nixpkgs hasn't been updated:
Expected behavior
succeeds in building like 21.05
Notify maintainers
I don't know who to contact.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: