[101060] in RedHat Linux List

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

2.0.36-1 kernel upgrade question

daemon@ATHENA.MIT.EDU (Sven N. Thommesen)
Tue Nov 24 12:59:54 1998

Date: Tue, 24 Nov 1998 11:55:38 -0600
To: redhat-list@redhat.com
From: "Sven N. Thommesen" <sthomme@aub.mindspring.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


Just installed Apollo, and decided to upgrade with the errata packages.
Since there are new versions of the kernel (2.0.36-1 upgrade from
2.0.36-0.7), I decided to do that one as well. I unearthed an ancient
document on redhat's web site on how to upgrade kernels with rpm, and tried
to follow the recipe. No joy. 

Here's what happened:

# rpm -ivh kernel-2.0.36-1.i386.rpm kernel-headers-2.0.36-1.i386.rpm

kernel ######################
kernel-headers cannot be installed
/usr/src/linux-2.0.36/include/asm-i386/bugs.h 
	conflicts with files from kernel-headers-2.0.36-0.7
<snip: multiple messages of the same sort>

OK, in /usr/src we have directory linux-2.0.36 and link 'linux' pointing to
that directory. I tried to rename the linux-2.0.36 directory to something
else, but I still got the same error messages. Q: is there some hidden link
to that directory sitting somewhere else?

Being paranoid, I did

# cp -a linux-2.0.36 linux-2.0.36-0.7
# rm linux

Then

# rpm -ivh --force kernel-headers-2.0.36-1.i386.rpm

which went fine. Result: the directory /usr/src/linux-2.0.36 had been
updated with new files. 

Now, the question: IF the include files for 2.0.36-1 are different from
those for 2.0.36-0.7, will the old 2.0.36-0.7 kernel now boot ??? (I don't
want to risk finding out the hard way ...) If so, doesn't Redhat have some
more work to do re: making rpm based kernel upgrades painless?

[If the upgrade had been to 2.0.37, of course, a new directory of that name
would have been created under /usr/src and the question does not come up.]

ANYHOW, here's my take on upgrading from 2.0.36-0.7 to 2.0.36-1. Those who
see errors, please point them out. This procedure worked for me -- both old
and new kernels boot.

// ----------------------------------------------------

# cd /usr/src
# rm linux
# cp -a linux-2.0.36 linux-2.0.36-0.7

# cd /updates/kernels
# rpm -e kernel-iBCS			[don't need that one]
# rpm -e kernel-pcmcia-cs		[nor that one]
# rpm -ivh kernel-2.0.36-1.i386.rpm
# rpm -ivh --force kernel-headers-2.0.36-1.i386.rpm

# cd /usr/src
# rm linux
# mv linux-2.0.36 linux-2.0.36-1
# ln -s linux-2.0.36-1 linux

# cd /etc
# vi lilo.conf			[add a stanza for the new kernel vmlinuz-2.0.36-1]
# /sbin/lilo

# shutdown -r now

// -------------------------------------------------------------


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


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