-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
makeModulesClosure referencing nonsensical modules #57421
Comments
Actually, I am using |
Nothing is parsing nixpkgs/nixos/modules/system/boot/kernel.nix Lines 234 to 237 in 0eb2c19
I feel like the error is somewhere in the https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/kernel/modules-closure.sh script, there the |
Whatever the reason, I can confirm that |
Ah ok, running |
I wonder if there is a specific reason why that script uses |
I went with fixing the regex in that pr, since I'm not quite sure if there isn't a reason to be using |
I am not quite sure who to ping for that pr. shlevy or edolstra maybe? |
Thank you for your contributions.
|
Well the bug is not fixed so this is not stale. |
fixed by #92081 |
Issue description
On a fresh rebuild of nixos-unstable,
makeModulesClosure
is referencing a nonsensical value as a module alias.Interestingly,
dm_mod
is now in the list ofboot.initrd.kernelModules
, even though I am not referencing that option inconfiguration.nix
:So something appears to be parsing
boot.kernelParams
to include modules with flags referenced there in the initrd. Here is myboot.kernelParams
setting:The wisdom of parsing
boot.kernelParams
for initrd modules aside, the parsing logic is likely incorrect and should discard the flag value rather than attempting to search for a module with that name.This doesn't actually break the build for me, but any name collision between a flag and a real module could certainly do something the user doesn't expect.
Steps to reproduce
configuration.nix
:nixos-rebuild switch
.Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
"x86_64-linux"
Linux 4.20.13, NixOS, 19.09pre172038.5d3fd3674a6 (Loris)
no
yes
nix-env (Nix) 2.2
"nixos-19.09pre172038.5d3fd3674a6"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: