Messages in this thread |  | | Date | Sat, 25 Nov 2000 13:44:37 +0000 (GMT) | From | Matthew Kirkwood <> | Subject | Re: LKCD from SGI |
| |
On Sat, 25 Nov 2000, J . A . Magallon wrote:
> Could the default target install names int the std kernel be changed to > System.map -> System.map-$(KERNELRELEASE) > vmlinuz -> vmlinuz-$(KERNELRELEASE) > and then symlink to that ? > > I think everyone that has a stable2.2, a devel 2.2 and a test24 is > using that method, so as many distros...
The /sbin/installkernel hooks allow you to do this (and other stuff) very easily:
# make install
does it all for you on Red Hat. I've attached their /sbin/installkernel in case you want to see how its done.
Matthew. #! /bin/sh
# # /sbin/installkernel - written by tyson@rwii.com #
INSTALL_PATH=/boot
KERNEL_VERSION=$1 BOOTIMAGE=$2 MAPFILE=$3
if [ -f $INSTALL_PATH/vmlinuz-$KERNEL_VERSION ]; then mv $INSTALL_PATH/vmlinuz-$KERNEL_VERSION \ $INSTALL_PATH/vmlinuz.old; fi
if [ -f $INSTALL_PATH/System.map-$KERNEL_VERSION ]; then mv $INSTALL_PATH/System.map-$KERNEL_VERSION \ $INSTALL_PATH/System.map.old; fi
cat $BOOTIMAGE > $INSTALL_PATH/vmlinuz-$KERNEL_VERSION cp $MAPFILE $INSTALL_PATH/System.map-$KERNEL_VERSION
ln -fs vmlinuz-$KERNEL_VERSION $INSTALL_PATH/vmlinuz ln -fs System.map-$KERNEL_VERSION $INSTALL_PATH/System.map
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
|  |