Bug 60644

Summary: up2date crash on upgrade to kernel-2.4.9-31
Product: [Retired] Red Hat Linux Reporter: Andrew Pam <xanni>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: gafton, katzj, mihai.ibanescu, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-05 20:37:14 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 Andrew Pam 2002-03-04 02:34:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.0.3 (X11; Linux i586; U;) Gecko/20020205

Description of problem:
"up2date -uf" downloaded and installed the kernel-2.4.9-31 and
kernel-smp-2.4.9-31 packages, then crashed with a traceback while trying to
update lilo.

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


How reproducible:
Always

Steps to Reproduce:
1. Install kernel-2.4.9-21 and kernel-smp.2.4.9-21
2. Run "up2date -uf"

	

Actual Results:  Retrieving selected packages...
kernel-2.4.9-31.i686.rpm:   ########################## Done.                   
kernel-smp-2.4.9-31.i686.rp ########################## Done.                   
Preparing...                ########################################### [100%]
   1:kernel                 ########################################### [ 50%]
   2:kernel-smp             ########################################### [100%]
Traceback (innermost last):
  File "/usr/sbin/up2date", line 1014, in ?
    main()
  File "/usr/sbin/up2date", line 341, in main
    sys.exit(batchRun(argObj.getLong("list"), pkgNames, fullUpdate))
  File "/usr/sbin/up2date", line 993, in batchRun
    up2date.installBootLoader(kernelsToInstall)
  File "/usr/share/rhn/up2date_client/up2date.py", line 2148, in installBootLoader
    bootloader = checkbootloader.whichBootLoader()
  File "/usr/share/rhn/up2date_client/checkbootloader.py", line 45, in
whichBootLoader
    fd = os.open(bootDev, os.O_RDONLY)
TypeError: argument 1: expected string, None found


Expected Results:  lilo updated.

Additional info:

/etc/lilo.conf contains:

boot=/dev/hda
compact
map=/boot/map
install=/boot/boot.b
prompt
read-only
root=/dev/hda1
timeout=50
vga=ext
default=linux

image=/boot/vmlinuz
        label=linux

image=/boot/vmlinuz-2.4.17
        label=linux-new

image=/boot/vmlinuz-2.4.16
        label=linux-prev

image=/boot/vmlinuz-2.4.9-21
        label=linux-up
#       initrd=/boot/initrd-2.4.9-21.img

image=/boot/vmlinuz-2.4.9-21smp
        label=linux-orig
#       initrd=/boot/initrd-2.4.9-21smp.img

Comment 1 Jeremy Katz 2002-03-04 21:39:06 UTC
Can you attach your /boot/grub/grub.conf so I can verify that my fix is actually
doing the right thing?

Comment 2 Adrian Likins 2004-04-05 20:37:14 UTC
No response, so closing out.

Havent seen any errors like this on current support
releases, so closing "currentrelease"