-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
broken "kernel.features" in linuxManualConfig #216529
Comments
ping @K900 |
That argument is explicitly ignored. https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/manual-config.nix#L52 I'm not sure why. |
maybe it's time to start using it ? |
PRs appreciated. |
|
Please submit it as a proper merge request, so it can be reviewed and tested. |
unfortunately i do not have time now, i will research how to do so later. |
Just encountered this too 🙁 How did you actually apply your patch to nixpkgs @sss123next ? |
NOTE: you can find but keep in mind, this allow to bypass checks, but seems work incorrectly..., so proper fix still required for this bug. |
Actually, the If everything works fine, we can manually override it, like this: let
kernel = manualConfig(...);
passthru = {
features = {...};
};
finalkernel = lib.extendDerivation true passthru kernel; and use the However, this also doesn't work currently, due to #111504 and https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/system/boot/kernel.nix#L43 ... So, finally, we should write something like this: let
kernel = manualConfig(...);
passthru = {
features = {...};
};
finalkernel = kernel.overrideAttrs(old: {passthru = old.passthru // passthru;}); and I hope this can work ... Update: It seems working very well on my machine! My dear steam, long time no see! And it would be great if my experience can help you guys! |
Now that #288154 is merged, can this be closed? |
Describe the bug
if
linuxManualConfig
is used, it's impossible to set features and default ones are brokenSteps To Reproduce
Steps to reproduce the behavior:
linuxManualConfig
kernel.features
nixos-rebuild switch
Expected behavior
kernel with custom config should be built with appropriate features set initialized
Actual result
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: