wrong entry in grub menu.lst after update of kernel

Bug #241200 reported by James Dupin
4
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

after today's update of kernel (linux-image-2.6.24-19-generic 2.6.24-19.34), grub menu.lst is changed incorrectly. See below
The entries ending by default are the new entries created when I accepted the maitener's version. It seems to be lacking the line of the initrd.

title Ubuntu 8.04.1, kernel 2.6.24-19-generic Default
root (hd0,0)
kernel /vmlinuz root=/dev/mapper/vg01-lvroot ro quiet splash
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic Default (recovery mode)
root (hd0,0)
kernel /vmlinuz root=/dev/mapper/vg01-lvroot ro single

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /vmlinuz-2.6.24-19-generic root=/dev/mapper/vg01-lvroot ro quiet splash
initrd /initrd.img-2.6.24-19-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.24-19-generic root=/dev/mapper/vg01-lvroot ro single
initrd /initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /memtest86+.bin
quiet

Revision history for this message
Gabriel Ruiz (anakron) wrote :

So, which is the problem? i cant understand, if yo want the real entries of your kernels, you must do and update-grub as root to solve this problem.

Revision history for this message
James Dupin (james.dupin) wrote :

the problem was (is?) that when the update took care, it asked me if I wanted to keep my menu list or put the maintener's version. I took the maintener's version and it wrote the above menu.lst and of course without the initrd line it failed to reboot.

It is not a problem for me as I know my way around but if you release this update (I believe it came from hardy-proposed) as is, there will be a major poopoo if suddenly nobody can boot.

It happened when I updated the following. (French time)
2008-06-19 09:01:36 upgrade linux-image-2.6.24-19-generic 2.6.24-19.33 2.6.24-19.34

Revision history for this message
Steve Langasek (vorlon) wrote :

I've done this same upgrade, and the first two entries of my menu.lst look like this:

title Ubuntu 8.04.1, kernel 2.6.24-19-generic Default
root (hd0,5)
kernel /vmlinuz root=/dev/mapper/dario2-root ro splash
initrd /initrd.img
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic Default (recovery mode)
root (hd0,5)
kernel /vmlinuz root=/dev/mapper/dario2-root ro single
initrd /initrd.img

Of course, the initrd line is present in both of them.

Yours is not the only report of the initrd line going missing on upgrade, yet I'm unaware of how any recent changes to the grub package would cause this, and the problem is not reproducible in general (and the grub package in hardy-proposed is no different from the version in the 8.04 release).

I'm marking this bug as a duplicate of the other, bug #222421. Perhaps between us, someone can figure out what it is that's triggering this (rare) initrd problem.

Revision history for this message
James Dupin (james.dupin) wrote :

I assume then that it is because the initrd.img has not been created either in /boot.

Well as you say it is rare, I would consider it closed on my side.

Thank you

Revision history for this message
Steve Langasek (vorlon) wrote :

if the initrd.img has not been created, then that's certainly a bug in its own right, though not a bug in grub, and we should still try to get that fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.