[Bug 758887] Re: Following kernel upgrade to 2.6.38-8.42, grub2 generates duplicate entries in the menu
Manjul Apratim
758887 at bugs.launchpad.net
Wed Jan 4 05:18:49 UTC 2012
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
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/758887
Title:
Following kernel upgrade to 2.6.38-8.42, grub2 generates duplicate
entries in the menu
Status in “grub2” package in Ubuntu:
New
Bug description:
Binary package hint: grub2
I just went with a system update yesterday for Natty Beta 1, and grub2
upon "sudo update-grub" generates duplicate entries in the menu.
Here are certain diagnostic outputs:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
manjul at chaar:~$ uname -a
Linux chaar 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
manjul at chaar:~$ dpkg -l | grep linux-image
ii linux-image-2.6.38-8-generic 2.6.38-8.42 Linux kernel image for version 2.6.38 on x86/x86_64
ii linux-image-generic 2.6.38.8.22 Generic Linux kernel image
manjul at chaar:~$ sudo update-grub
[sudo] password for manjul:
Generating grub.cfg ...
Found background: /usr/share/images/grub/Windbuchencom.tga
Found background image: /usr/share/images/grub/Windbuchencom.tga
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /memtest86+.bin
Found Arch on /dev/sda4
Found Debian GNU/Linux (wheezy/sid) on /dev/sda7
Found Slackware Linux (Slackware 13.1.0) on /dev/sda8
Found Gentoo Base System release 1.12.14 on /dev/sda9
done
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have attached here the file /boot/grub/grub.cfg generated by the
above command, which will show the duplicate entries - they refer to
the same linux-image in each of the distros, as is indicated by the
uuid's
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub-pc 1.99~rc1-12ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Tue Apr 12 11:22:28 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: Upgraded to natty on 2011-04-06 (6 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/758887/+subscriptions
More information about the foundations-bugs
mailing list