mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
modules-shrunk: preserve module priorities from build
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
This commit is contained in:
parent
b665c387bc
commit
34b04a6364
@ -56,4 +56,12 @@ for module in $closure; do
|
||||
done
|
||||
done
|
||||
|
||||
# copy module ordering hints for depmod
|
||||
cp $kernel/lib/modules/"$version"/modules.order $out/lib/modules/"$version"/.
|
||||
cp $kernel/lib/modules/"$version"/modules.builtin $out/lib/modules/"$version"/.
|
||||
|
||||
depmod -b $out -a $version
|
||||
|
||||
# remove original hints from final derivation
|
||||
rm $out/lib/modules/"$version"/modules.order
|
||||
rm $out/lib/modules/"$version"/modules.builtin
|
||||
|
Loading…
Reference in New Issue
Block a user