mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
aggregateModules: Preserve kernel's modules.{builtin,order}
Fixes #19426.
This commit is contained in:
parent
ecb596b898
commit
88f10ad409
@ -17,10 +17,12 @@ buildEnv {
|
||||
|
||||
echo "kernel version is $kernelVersion"
|
||||
|
||||
shopt -s extglob
|
||||
|
||||
# Regenerate the depmod map files. Be sure to pass an explicit
|
||||
# kernel version number, otherwise depmod will use `uname -r'.
|
||||
if test -w $out/lib/modules/$kernelVersion; then
|
||||
rm -f $out/lib/modules/$kernelVersion/modules.*
|
||||
rm -f $out/lib/modules/$kernelVersion/modules.!(builtin*|order*)
|
||||
${kmod}/bin/depmod -b $out -a $kernelVersion
|
||||
fi
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user