Red Hat Bugzilla – Bug 173281
removing kernel-2.6.13-1.1532_FC4.i686.rpm with rpm -e clobbers grub.conf
Last modified: 2007-11-30 17:11:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
I have upgraded the kernel in 3 machines from -2.6.13-1.1532_FC4.i686.rpm to
2.6.14-1.1637_FC4.i686.rpm using rpm -i (worked fine) and then removed the
2.6.13-1.1532 kernel using rpm -e. In all cases grub.conf got horribly messed
up and I had to hand edit it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Have an FC4 system with kernel 2.6.13-1.1532_FC4.i686.rpm installed
2.rpm -i kernel-2.6.14-1.1637_FC4.i686.rpm
3.rpm -e kernel-2.6.13-1.1532_FC4
Actual Results: Depends on previous contents of grub.conf, but typically the 2.6.14 kernel gets
removed from grub.conf
Expected Results: Should have removed the 2.6.13 kernel from grub.conf and left the 2.6.14 reference.
This may be, in general, too hard a problem for automatic editing of grub.conf to
handle. In one case I had a 2.6.13 kernel in the system I was running and had another one in a test system on a different disk partition, and grub.conf arranged
to let me choose which system to boot. rpm -e removed both kernels from grub.conf
and also the 2.6.14 kernel. I dunno - maybe rpm -e should just ask me if I want
to edit grub.conf by hand and show me what it would do if I let it go ahead.
I'm calling the severity normal, realizing that the affected kernel rpm is already
out the door and can't be fixed, but I hope this doesn't happen on future kernel
grub.conf additions are done with 'grubby', part of mkinitrd.
This report targets the FC3 or FC4 products, which have now been EOL'd.
Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?
It only affected that one kernel RPM, have not had the trouble with anything
I can't find a status of "closed" to change it to, but it's all over.