lkml.org 
[lkml]   [2000]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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

    \
     
     \ /
      Last update: 2005-03-22 12:47    [W:0.031 / U:32.616 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site