Grub creates spurious entries in the menu

My PCs are all multiboot with various versions of Ubuntu.
I have opened a bug for this problem. Does this happen to you too?

n4
I see the problem for all my Ubuntu installed on nvme disk but not for Ubuntu and Debian on SSD disk

I see this in update-grub:

Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: vmlinuz-6.11.0-8-generic in rpool/ROOT/ubuntu_a1d4up
Found initrd image: initrd.img-6.11.0-8-generic in rpool/ROOT/ubuntu_a1d4up
Found linux image: vmlinuz-6.11.0-8-generic in rpool/ROOT/ubuntu_a1d4up@12-10
Found initrd image: initrd.img-6.11.0-8-generic in rpool/ROOT/ubuntu_a1d4up@12-10
Found linux image: vmlinuz-linux-cachyos-bore-lto in zpcachyos/ROOT/cos/root
Warning: Couldn't find any valid initrd for dataset zpcachyos/ROOT/cos/root.
Found linux image: vmlinuz-linux-cachyos in zpcachyos/ROOT/cos/root
Warning: Couldn't find any valid initrd for dataset zpcachyos/ROOT/cos/root.
Warning: didn't find any valid initrd or kernel.
Found linux image: vmlinuz-linux-cachyos-bore-lto in zpcachyos/ROOT/cos/root@11-7
Warning: Couldn't find any valid initrd for dataset zpcachyos/ROOT/cos/root@11-7.
Found linux image: vmlinuz-linux-cachyos in zpcachyos/ROOT/cos/root@11-7
Warning: Couldn't find any valid initrd for dataset zpcachyos/ROOT/cos/root@11-7.
Warning: didn't find any valid initrd or kernel.
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Found memtest86+ 32bit EFI image: /boot/memtest86+ia32.efi
Found memtest86+ 64bit image: /boot/memtest86+x64.bin
Found memtest86+ 32bit image: /boot/memtest86+ia32.bin
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

No multi boots on mine.
this show’s

sudo awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg 
[sudo] password for me: 
Revert system only
Revert system and user data
Revert system only (recovery mode)
Revert system and user data (recovery mode)
Ubuntu Plucky Puffin (development branch)
Ubuntu Plucky Puffin (development branch), with Linux 6.11.0-8-generic
Ubuntu Plucky Puffin (development branch), with Linux 6.11.0-8-generic (recovery mode)


To me this smells like os-prober, but I will add my self to your bug. Nice Find BTW

Did you run Grub Customizer? Or maybe somehow have duplicate scripts in

Blockquote ll /etc/grub.d/

I don’t use Grub Customizer and not changed /etc/grub.d/.
Note that I have the same problem with multiple installations of Noble, Oracular and Plucky on 2 different PC.

I’m the same as @corradoventu Just say No to Grub Customizer!
@oldfred I’m glad you made the journey to Discourse.

And we just got a reply from the Bug Report:

Mate Kukri (mkukri) wrote 6 hours ago: #12

Hey folks,

Thanks for reporting this. It seems like this is related to memtest86++ being installed.

I won’t have time this week, but I will take a look at this after the holidays.

Mate

Changed in grub2-unsigned (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Mate Kukri (mkukri)

Some other changes I’ve made:

‘GRUB_DISABLE_SUBMENU’
Normally, ‘grub-mkconfig’ will generate top level menu entry for
the kernel with highest version number and put all other found
kernels or alternative menu entries for recovery mode in submenu.
For entries returned by ‘os-prober’ first entry will be put on top
level and all others in submenu. If this option is set to ‘true’,
flat menu with all entries on top level will be generated instead.
Changing this option will require changing existing values of
‘GRUB_DEFAULT’, ‘fallback’ (*note fallback::slight_smile: and ‘default’ (*note
default::slight_smile: environment variables as well as saved default entry
using ‘grub-set-default’ and value used with ‘grub-reboot’.
b

And this:

apt policy memtest86++
Notice: Unable to locate package memtest86++

or this:

apt policy memtest86+
memtest86+:
  Installed: (none)
  Candidate: 7.20-1
  Version table:
     7.20-1 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status

os prober

apt policy os-prober
os-prober:
  Installed: (none)
  Candidate: 1.83ubuntu1
  Version table:
     1.83ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages