Re: System map

Riley Williams (rhw@MemAlpha.CX)
Tue, 8 Jun 1999 17:43:56 +0100 (GMT)


Hi Matthew.

> I have a silly question. I just upgraded my RH system to 6.0.
> Of course, I'd already been well beyond 2.2.5 by then, so I kept
> my current kernel. Now, with 2.2.7 and 2.2.8, when I boot, I
> get a message repeated several times to the effect that
> /boot/System.map doesn't match the kernel version. Is that bad,
> and is there a way to fix it?

I noticed the same messages, and fixed it with the following patch:

=====8<===== CUT =====>8=====
--- /etc/rc.d/rc.sysinit~ Wed Feb 10 17:46:58 1999
+++ /etc/rc.d/rc.sysinit Tue Jun 8 17:40:18 1999
@@ -94,6 +94,11 @@
echo "Remounting root filesystem in read-write mode."
mount -n -o remount,rw /

+# Make sure we're pointing at the correct system map
+if [ -L /boot/System.map -a -f /boot/System.map-`uname -r` ]; then
+ ( cd /boot ; ln -sf System.map-`uname -r` System.map )
+fi
+
if [ ! -f /etc/HOSTNAME ]; then
echo ${HOSTNAME} > /etc/HOSTNAME
fi
=====8<===== CUT =====>8=====

The other thing I do is to copy /usr/src/linux/System.map to
/boot/System.map-$KERNEL after each compile, usually by tweaking the
relevant makefile before compiling so it does this for me.

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/