I have a slightly complicated setup and I'm doing my best to get along with grub-pc. I'm using Karmic 64-bit and grub-pc 1.97.
My issue is the 30_os-prober script is incorrectly creating menu entries that overlap each other.
The CLI output from update-grub:
The results in grub.cfg
The first two entries are correct, the last one isn't.
I do have openSUSE 11.2 installed, but it's installed as /boot on /dev/sdb2 with / on /dev/md7 (a raid device). The correct entry for the openSUSE install I put in 40_custom like this
It's odd that it doesn't report finding openSUSE, still puts it in (wrong), and I can't get it to detect it correctly.
My issue is the 30_os-prober script is incorrectly creating menu entries that overlap each other.
The CLI output from update-grub:
root@office:/boot/grub# update-grub
Generating grub.cfg ...
Found Debian background: background.png
Found linux image: /boot/vmlinuz-2.6.31-20-generic
Found initrd image: /boot/initrd.img-2.6.31-20-generic
Found memtest86+ image: /memtest86+.bin
Found Ubuntu 9.10 (9.10) on /dev/sda5
done
Generating grub.cfg ...
Found Debian background: background.png
Found linux image: /boot/vmlinuz-2.6.31-20-generic
Found initrd image: /boot/initrd.img-2.6.31-20-generic
Found memtest86+ image: /memtest86+.bin
Found Ubuntu 9.10 (9.10) on /dev/sda5
done
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-19-generic (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=ebffb916-98b7-4f9c-85c5-4a91796710d1 ro quiet splash ipv6.disable=1
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode) (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=ebffb916-98b7-4f9c-85c5-4a91796710d1 ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "openSUSE 11.2 (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /vmlinuz root=UUID=418db53a-2d85-4148-a693-c721bca71af0 ro quiet splash
initrd /initrd
}
### END /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-19-generic (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=ebffb916-98b7-4f9c-85c5-4a91796710d1 ro quiet splash ipv6.disable=1
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode) (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=ebffb916-98b7-4f9c-85c5-4a91796710d1 ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "openSUSE 11.2 (on /dev/sda5)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set ebffb916-98b7-4f9c-85c5-4a91796710d1
linux /vmlinuz root=UUID=418db53a-2d85-4148-a693-c721bca71af0 ro quiet splash
initrd /initrd
}
### END /etc/grub.d/30_os-prober ###
I do have openSUSE 11.2 installed, but it's installed as /boot on /dev/sdb2 with / on /dev/md7 (a raid device). The correct entry for the openSUSE install I put in 40_custom like this
menuentry "openSUSE 11.2" {
insmod raid
insmod mdraid
insmod reiserfs
set root=(hd1,2)
search --no-floppy --fs-uuid --set 418db53a-2d85-4148-a693-c721bca71af0
linux /vmlinuz-2.6.31.12-0.1-desktop root=UUID=c04e1c76-8305-43f5-b6a8-db37947a0636 ro quiet splash ipv6.disable=1
initrd /initrd-2.6.31.12-0.1-desktop
}
insmod raid
insmod mdraid
insmod reiserfs
set root=(hd1,2)
search --no-floppy --fs-uuid --set 418db53a-2d85-4148-a693-c721bca71af0
linux /vmlinuz-2.6.31.12-0.1-desktop root=UUID=c04e1c76-8305-43f5-b6a8-db37947a0636 ro quiet splash ipv6.disable=1
initrd /initrd-2.6.31.12-0.1-desktop
}
Comment