The System.map content was moved into Debian's debug package with kernel
5.8.10-1 and newer, see https://salsa.debian.org/kernel-team/linux.git:
| commit
26a6ecc287bdbe56ae5dd4fbbd32c76b57b9e690 (origin/waldi/update-5.8)
| Author: Bastian Blank <bastian.blank@credativ.de>
| Date: Tue Aug 4 17:19:42 2020 +0200
|
| Move System.map into debug package
Now it only contains a place holder:
| # cat /boot/System.map-5.10.0-4-amd64
|
ffffffffffffffff B The real System.map is in the linux-image-<version>-dbg package
Due to this, we get >134k entries like:
| depmod: WARNING: /lib/modules/5.10.0-4-amd64/kernel/arch/x86/events/rapl.ko needs unknown symbol x86_match_cpu
… resulting in a ~16MB log file (FAI's shell.log).
To avoid this, let's skip usage of depmod's `-e -F /boot/System.map-*'.
Note: It's probably not worth checking for 'The real System.map is in
the' inside the /boot/System.map-* file and only if it's not present
then consider using it, given that this string might change over time.
FTR: We usually also don't have the Module.symvers available for usage
with depmod's `-E` option, as the Module.symvers is part of the kernel
source package.
Closes: https://github.com/grml/grml-live/issues/99
kernelversion=${kernel##$target}
kernelversion=${kernelversion##/boot/vmlinuz-}
- echo "Updating modules.dep for kernel $kernelversion"
- $ROOTCMD depmod -ae -F /boot/System.map-"$kernelversion" "$kernelversion"
+ echo "Updating modules.dep for kernel ${kernelversion}"
+ $ROOTCMD depmod -a "${kernelversion}"
done
## END OF FILE #################################################################