Grub 2 multiboot config wrong with Mandriva

Bug #408209 reported by J.A. Watson
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub-pc

Installing Karmic Alpha 3 on multi-boot systems, with Mandriva 2009.1 (or its derivatives) being one of the other installed distributions. Mandriva puts the partition information in menu.lst on the "kernel" and "initrd" lines, like this:

title linux
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=cbe56721-313a-49c2-9e06-6ac78a5df00f resume=UUID=ed97fbf1-7965-465f-8a29-5698bb23502d splash=silent vga=788
initrd (hd0,5)/boot/initrd.img

When Grub 2 creates its grub.cfg (and previously /etc/grub.d/30_otheros), it correctly strips the device specification from the kernel line and converts it to a "root" specification, but it does not strip the device from the initrd line, and thus leaves an invalid boot specification such as this:

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
menuentry "linux (on /dev/sda6)" {
        set root=(hd0,6)
        search --no-floppy --fs-uuid --set cbe56721-313a-49c2-9e06-6ac78a5df00f
        linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=cbe56721-313a-49c2-9e06-6ac78a5df00f resume=UUID=ed97fbf1-7965-465f-8a29-5698bb23502d splash=silent vga=788
        initrd (hd0,5)/boot/initrd.img
}

Colin Watson (cjwatson)
affects: grub2 (Ubuntu) → os-prober (Ubuntu)
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.