-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dale wrote: > Stroller wrote: >> On 2 Feb 2009, at 03:46, Dale wrote: >>>> ... >>>> I think I tried this &/or genkernel & when I looked at /boot I found >>>> they'd littered the place with clutter. >>>> >>>> I hope you won't be offended, but the amount of junk files this added >>>> made me want to barf. >>>> >>>> I have avoided any such "complications" since, considering I don't >>>> consider copying a file & editing grub.conf to be anything of a >>>> complication myself. >>>> ... >>> I think I read somewhere that system.map file is no longer needed, >>> unless you want to set up things in a "odd" way. Is that correct? >> I've certainly never needed it, in several years since 2.4 kernels. >> But IIRC it is/was copied over when using these "automated kernel >> installation methods". >> >> Stroller. >> > > I think that is how mine got there to. I may rename mine and reboot and > see what blows up. > > Dale > > :-) :-) > >
If I remember correctly, it is only used by depmod, and only if you pass the file name on the command line. update-modules, which calls depmod, and tends to be the main way that depmod is called (besides in the kernel Makefile), searches the following directories for the System.map file: /lib/modules/${KV}/build /usr/src/linux-${KV} /lib/modules/${KV} /boot /usr/src/linux In each directory, it looks for the file in this order: System.map-genkernel-${arch}-${KV} System.map-genkernel-*-${KV} System.map-${KV} System.map What this effectively means is that the copy in /boot is a backup copy, just in case you clean the current build of your kernel (/lib/modules/${KV}/build is a symlink to the build directory of your kernel build, which can differ from the source directory) tl;dr version: It won't blow up immediately, but you might run into problems later if you `make clean` or `make mrproper` in the build tree - - or build a different kernel in the same tree. - -- ABCD -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmGn8YACgkQOypDUo0oQOqZFgCffggirZ6KATIY/WcMwRxFz9O5 4BMAniHaPafRfEb6dhE1YXsfVUKJKLo2 =MqG6 -----END PGP SIGNATURE-----