os-prober entries do not use correct /boot device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub2
I'm encountering this on a system using lvm with a separate /boot partition outside of lvm used by jaunty but no separate /boot for karmic, but I think it will affect every system with grub 1 on a separate /boot partition, not just those also using lvm.
"sudo os-prober" gives me:
/dev/sda1:Microsoft Windows XP Home Edition:
/dev/mapper/
/dev/mapper/
which as far as I know is correct: main/jaunty_chroot is an sbuild-lvm chroot, main/root is a regular jaunty install.
"sudo linux-boot-prober /dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/mapper/
which again I think is correct. Notice /dev/sda2 is my separate /boot partition.
However /etc/grub/
menuentry "Ubuntu 9.04, kernel 2.6.28-15-generic (on /dev/mapper/
insmod lvm
insmod ext2
set root=(main-root)
search --no-floppy --fs-uuid --set 096600f3-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
while a manually added entry that works is:
menuentry "Ubuntu 9.04, kernel 2.6.28-15-generic (on /dev/mapper/
insmod lvm
insmod ext2
set root=(hd0,2)
linux /vmlinuz-
initrd /initrd.
}
Notice that just changing the prepare_
ProblemType: Bug
Architecture: i386
Date: Wed Oct 7 13:24:42 2009
DistroRelease: Ubuntu 9.10
Package: grub2 (not installed)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: grub2
Uname: Linux 2.6.31-12-generic i686
I am having the same problem but without LVM. I am using two SATA drives, the first with Windows and the second with Jaunty with a separate /boot partition and one external USB disk on which Karmic is installed with no separate /boot partition. In Karmic I have created a 06_custom level script in /etc/grub.d in which I have changed the UUID on the search command line to that of the /boot partition for Jaunty and removed "/boot" from the "Linux" and "Initrd" lines. Without removing the execute bit from the 30 level script I just ignore the generated menu entries for Jaunty which follow the Karmic entries. This also gives me the opportunity to do a quick test of any changes to Grub2 by trying the 30 level menu entries to see if they still fail.