aggregateModules: Preserve kernel's modules.{builtin,order}

Fixes #19426.
This commit is contained in:
Eelco Dolstra 2016-10-11 11:40:48 +02:00
parent ecb596b898
commit 88f10ad409

View File

@ -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
'';