Bug 61232 - up2date fails to update lilo.conf
up2date fails to update lilo.conf
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-15 11:57 EST by Charles Steinkuehler
Modified: 2015-01-07 18:55 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-15 16:59:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Charles Steinkuehler 2002-03-15 11:57:43 EST
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 16:59:36 EST
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.

Note You need to log in before you can comment on or make changes to this bug.