[3233] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Kernel Upgrading!

daemon@ATHENA.MIT.EDU (Alan Shutko)
Thu Nov 7 18:00:08 1996

To: redhat-list@redhat.com
Cc: "'q80@dimensional.com'" 	 <q80@dimensional.com>
From: Alan Shutko <ats@wydo125.wustl.edu>
Date: 07 Nov 1996 15:26:57 -0600
In-Reply-To: Al Longyear's message of Thu, 7 Nov 1996 06:17:37 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

>>>>> "AL" == Al Longyear <longyear@sii.com> writes:

AL> Did you forget to change the /usr/src/linux/Makefile so that the
AL> kernel was written to the proper directory? (This one always seems
AL> to catch me when I download a full kernel rather than just patch
AL> the existing one.  It never fails. I always flub the first build
AL> and wonder "what happened?" --- duh!)

I suggest placing this script in /sbin/installkernel, which allows you
to do 'make install' and have the right thing done.  No makefile
changes needed.

#!/bin/sh
#
# Arguments:
#   $1 - kernel version
#   $2 - kernel image file
#   $3 - kernel map file
#   $4 - default install path (blank if root directory)
#
ROOT=/boot

# Default install - same as make zlilo

if [ -f $ROOT/vmlinuz ]; then
	/bin/mv $ROOT/vmlinuz $ROOT/vmlinuz.old
fi

if [ -f $ROOT/System.map ]; then
	mv $ROOT/System.map $ROOT/System.old
fi

cat $2 > $ROOT/vmlinuz
cp $3 $ROOT/System.map

if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi

--
Alan Shutko <ats@hubert.wustl.edu> - The Few, the Proud, the Remaining.
Anarchist magick: the Necronominonconformisticon


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post