First time compiling a new kernel

Simon Fowler simon at himi.org
Mon Jul 8 16:01:37 EST 2002


On Mon, Jul 08, 2002 at 03:27:29PM +1000, Brad Hards wrote:
> RH installs the following /sbin/installkernel :
> <extract>
> 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
> </extract>
> 
> Looks pretty hardcoded to LILO AFAICT...
> 
It does rather . . .

Still, fixing the problem there /is/ the Right Thing(tm), since then
you don't have to fiddle with things every time you install a new
kernel - that's obviously the idea behind using the script.

If this was Debian, I'd suggest using kernel-package . . . With RH,
it's either hack /sbin/installkernel or install by hand . . .

Simon

-- 
PGP public key Id 0x144A991C, or ftp://bg77.anu.edu.au/pub/himi/himi.asc
(crappy) Homepage: http://bg77.anu.edu.au
doe #237 (see http://www.lemuria.org/DeCSS) 
My DeCSS mirror: ftp://bg77.anu.edu.au/pub/mirrors/css/ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20020708/d8ae67bf/attachment.bin


More information about the linux mailing list