After many months of despair, I have an interesting workaround!

My partition and OS setup is still the same - Ubuntu + Arch + Debian + 
Slackware + Gentoo, each running only ONE kernel.
If I do a `sudo update-grub' in Ubuntu with everything else NOT mounted, I 
still get the same old results - Ubuntu, Arch and Gentoo show up fine, while 
Debian has 5 entries, and Slackware has 4. Debian has the following files in 
its /boot:

config-3.1.0-1-amd64
System.map-3.1.0-1-amd64
initrd.img-3.1.0-1-amd64
vmlinuz-3.1.0-1-amd64

which, as before, correspond to the same kernel.

Slackware has the following files in its /boot:
config
config-generic-2.6.38.7
config-huge-2.6.38.7
initrd-tree
initrd.gz
README.initrd
System.map
System.map-huge-2.6.38.7
System.map-generic-2.6.38.7
vmlinuz
vmlinuz-generic-2.6.38.7
vmlinuz-huge-2.6.38.7

which again correspond to the same kernel, but are causing os-prober to
generate different entries.

If however, I have the Debian and Slackware partitions MOUNTED when I
run os-prober, the Debian entries all condense into one, and the
Slackware entries into two (corresponding to vmlinuz-generic and
vmlinuz-huge), and I have the perfect grub.cfg!

Clearly, os-prober (rather linux-boot-prober) treats unmounted and
mounted partitions differently, and maybe this will be the clue? I will
myself try to look at the code when I can.

Cheers!

Manjul

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/758887

Title:
  Following kernel upgrade to 2.6.38-8.42, grub2 generates duplicate
  entries in the menu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/758887/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to