Bug 115364 - kernel upgrade fails to install boot loader
Summary: kernel upgrade fails to install boot loader
Alias: None
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
(Show other bugs)
Version: 1
Hardware: All Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-02-11 14:42 UTC by Chris Ricker
Modified: 2014-01-21 22:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-05 17:29:25 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Chris Ricker 2004-02-11 14:42:36 UTC
The latest kernel errata update fails to detect my bootloader:

I will do the following:
[install: kernel-smp 2.4.22-1.2166.nptl.i686]
Is this ok [y/N]: y
Getting kernel-smp-2.4.22-1.2166.nptl.i686.rpm
kernel-smp-2.4.22-1.2166. 100% |=========================|  13 MB    00:16
Running test transaction:
Test transaction complete, Success!
kernel-smp 100 % done 1/1
Kernel Updated/Installed, checking for bootloader
No bootloader found, Cannot configure kernel, continuing.
Installed:  kernel-smp 2.4.22-1.2166.nptl.i686
Transaction(s) Complete

I'm using grub, and it did update grub.conf (though it left the old
kernel as the default), so I'm not sure where / why I'm getting the

[root@spamstop root]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
title Fedora Core (2.4.22-1.2166.nptlsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2166.nptlsmp ro root=LABEL=/
        initrd /initrd-2.4.22-1.2166.nptlsmp.img
title Fedora Core (2.4.22-1.2149.nptlsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2149.nptlsmp ro root=LABEL=/
        initrd /initrd-2.4.22-1.2149.nptlsmp.img
[root@spamstop root]#

Comment 1 Jeremy Katz 2004-02-11 14:48:38 UTC
This is yum, not mkinitrd (new-kernel-pkg leaves the old kernel as the
default and then yum tries to switch it).  What do you get if you
python /usr/share/yum/checkbootloader.py?

Comment 2 Chris Ricker 2004-02-11 15:04:04 UTC
Okay, thanks.

[root@spamstop root]# python /usr/share/yum/checkbootloader.pyc
Unable to determine boot loader.
[root@spamstop root]#

Comment 3 Chris Ricker 2004-02-11 15:04:59 UTC
I might be mistaken (too many machines, not enough brain cells), but I
don't remember this happening when yum updating from 2115 to 2149....

Comment 4 Chris Ricker 2004-02-11 20:07:13 UTC
I just glanced through checkbootloader.py. If I uncomment the print
statement in the "for dev in bootdevs" loop, I get:

[root@spamstop yum-2.0.4]# python checkbootloader.py
checking hda
Unable to determine boot loader.
[root@spamstop yum-2.0.4]#

This system is SCSI (hardware RAID):

[root@spamstop yum-2.0.4]# mount | grep ^/
/dev/sda3 on / type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sdb1 on /var/spool type ext3 (rw)
[root@spamstop yum-2.0.4]#

Comment 5 Jeff Johnson 2004-02-11 22:40:05 UTC
NEEDINFO while awaiting patch from upstream (and so I don't
have to stare at this bug).

Comment 6 Chris Ricker 2004-04-26 19:15:52 UTC
Was the yum update to 2.0.5 done in March supposed to fix this? It
didn't, since I still saw the problem when yum put the new 2188 errata
kernel on the system....

Comment 7 Seth Vidal 2004-05-05 02:21:03 UTC
can you post your /etc/grub.conf here?

your /etc/grub.conf has tha


the checkbootloader code still looks and uses that to search for

change that from /dev/hda to /dev/sda and see if everything magically
starts working.

also - I know it's commented out - it doesn't matter.

You should be seeing this behavior from up2date too - it uses the same
code for the bootloader detection.

Comment 8 Chris Ricker 2004-05-05 14:21:20 UTC
Changing it from hda to sda appears to make it work:

[root@spamstop grub]# python /usr/share/yum/checkbootloader.pyc
Found GRUB.
[root@spamstop grub]#

There's no good reason for anaconda to have ever gotten hda in there
in the first place -- that system has always been SCSI, and it was a
fresh install of Fedora Core 1....

Comment 9 Seth Vidal 2004-05-05 17:03:31 UTC
you didn't accidentally copy a grub.conf over from somewhere else or
cut and paste a little liberally, did you?

Comment 10 Chris Ricker 2004-05-05 17:26:43 UTC
Not that I recall, and the only note in the log book was that default
was fixed manually after updates (and now that the comment was changed
from hda to sda)....

If there haven't been any other reports of anaconda generating hda
instead of sda, though, you should probably chalk it up to me doing it
and having forgotten it -- that machine is a bog-standard dell
poweredge 1750, so it's not like it's an unusual configuration

Comment 11 Seth Vidal 2004-05-05 17:29:25 UTC
ok, I'm going to close this one as notabug, for now, unless jeremy
says otherwise.

I'd really prefer it if red hat's bugzilla had a:
Close -> Weird.


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