Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
modules-shrunk: preserve module priorities from build #75181
Motivation for this change
see also: #75178
depmod looks for files modules.order and modules.builtin which are generated at kernel build time but were previously not passed to the modules-shrunk derivation
For this to work the file must be available to depmod and temporarily copying it over is the simplest and most reliable solution for that. Note that the file is removed after depmod has been run, so it should not impact the size of the output beyond adjusting module preferences to what has actually been chosen for the kernel.
Granted, the proper Nix way would be to adjust the search path used by depmod to the nix store path where modules.order and its sibling live, but I expect endless pain and horror from going that route.