Bug 61232

Summary: up2date fails to update lilo.conf
Product: [Retired] Red Hat Linux Reporter: Charles Steinkuehler <charles>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: gafton, mihai.ibanescu, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-15 21:59:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles Steinkuehler 2002-03-15 16:57:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)

Description of problem:
up2date does not add a new entry to /etc/lilo.conf when installing a new kernel 
RPM if /boot partition is a raid device

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Install RedHat 7.2 onto a system with /boot as a mirrored (raid1) device, 
using LILO as the boot-loader
2.Register with RedHatNetwork, import GPG key, and run up2date -uf to update 
kernel
3.Verify new kernel is installed, but lilo.conf does *NOT* have an entry for 
the new kernel.
	

Actual Results:  I had exactly the same lilo.conf as before the kernel update

Expected Results:  up2date should have updated lilo.conf with a new linux 
entry, and renamed my existing linux entry as linux.bak

Additional info:

Up2date log when running with the default lilo.conf created by a 7.2 install 
with a mirrored /boot partiton:
[Fri Mar 15 08:43:05 2002] up2date updating login info
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date logging into up2date server
[Fri Mar 15 08:43:05 2002] up2date successfully retrived authentication token 
from up2date server
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date getAvailablePackageList from network
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date see if we need to login again
[Fri Mar 15 08:43:05 2002] up2date see if we need to login again
[Fri Mar 15 08:43:05 2002] up2date see if we need to login again
[Fri Mar 15 08:44:51 2002] up2date updating login info
[Fri Mar 15 08:44:51 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:44:51 2002] up2date logging into up2date server
[Fri Mar 15 08:44:51 2002] up2date successfully retrived authentication token 
from up2date server
[Fri Mar 15 08:43:05 2002] up2date installing packages: ['kernel-2.4.9-
31', 'kernel-headers-2.4.9-31', 'kernel-source-2.4.9-31']
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 1
[Fri Mar 15 08:43:05 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 08:43:05 2002] up2date Removing packages from package profile: 
['kernel-headers-2.4.9-21', 'kernel-source-2.4.9-21']
[Fri Mar 15 08:43:05 2002] up2date Adding packages to package profile: ['kernel-
2.4.9-31', 'kernel-headers-2.4.9-31', 'kernel-source-2.4.9-31']
[Fri Mar 15 08:43:05 2002] up2date Modifying bootloader config to include the 
new kernel info
[Fri Mar 15 08:43:05 2002] up2date Adding 2.4.9-31 to bootloader config
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-2.4.9-
31.i686.rpm
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-2.4.9-
31.i686.hdr
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-headers-
2.4.9-31.i386.rpm
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-headers-
2.4.9-31.i386.hdr
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-source-
2.4.9-31.i386.rpm
[Fri Mar 15 08:43:05 2002] up2date deleting /var/spool/up2date/kernel-source-
2.4.9-31.i386.hdr

At this point, the lilo.conf is unchanged.  I manually removed the new kernel 
(rpm -e kernel-2.4.9-31), edited /etc/lilo.conf (changing boot=/dev/md0 to 
boot=/dev/sda) and re-ran up2date, with the following results:

[Fri Mar 15 10:22:49 2002] up2date updating login info
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date logging into up2date server
[Fri Mar 15 10:22:49 2002] up2date successfully retrived authentication token 
from up2date server
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date getAvailablePackageList from network
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date installing packages: ['kernel-2.4.9-31']
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 1
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Adding packages to package profile: ['kernel-
2.4.9-31']
[Fri Mar 15 10:22:49 2002] up2date Modifying bootloader config to include the 
new kernel info
[Fri Mar 15 10:22:49 2002] up2date Adding 2.4.9-31 to bootloader config
[Fri Mar 15 10:22:49 2002] up2date Running lilo with the new configuration
[Fri Mar 15 10:22:49 2002] up2date Opening rpmdb in /var/lib/rpm/ with option 0
[Fri Mar 15 10:22:49 2002] up2date Running "/sbin/mkinitrd --
ifneeded /boot/initrd-2.4.9-31.img 2.4.9-31"
[Fri Mar 15 10:22:49 2002] up2date /boot/initrd-2.4.9-31.img was created
[Fri Mar 15 10:22:49 2002] up2date renaming the lilo.conf entry for linux to 
linux.bak1
[Fri Mar 15 10:22:49 2002] up2date making a backup copy of /etc/lilo.conf 
as /etc/lilo.conf.up2date-1016209390.33
[Fri Mar 15 10:22:492002] up2date writing out the new /etc/lilo.conf
[Fri Mar 15 10:22:49 2002] up2date Running " /sbin/lilo -t -r /"  (lilo test 
mode)
[Fri Mar 15 10:22:49 2002] up2date Running " /sbin/lilo -r / "
[Fri Mar 15 10:22:49 2002] up2date lilo updated succesfully

At this point, lilo.conf *WAS* updated as expected, but only by forcing the 
boot device to a non-raid partition.  Apparently, something about up2date 
doesn't like lilo's boot= device pointing to a raid, and up2date *SILENTLY* 
refuses to update lilo.conf.

Comment 1 Adrian Likins 2002-03-15 21:59:36 UTC
Should be fixed in the next version of the code. The bug is in the section
of code that attempts to determine which bootloader is in use by
reading the first few sectors of the boot drive, and it fails in some
raid configs.