TL'DR:
sudo echo GRUB_DISABLE_OS_PROBER=false >> /etc/default/grub && sudo update-grub
Details:
OS Prober no longer ran by default in latest grub
:
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
Such kind of questions starts to show up since May 2021.
So I've followed the advice:
% sudo echo GRUB_DISABLE_OS_PROBER=false >> /etc/default/grub && sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Sourcing file `/etc/default/grub.d/lubuntu-grub-theme.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/lubuntu-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-5.13.0-19-generic
Found initrd image: /boot/initrd.img-5.13.0-19-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 20.04 LTS (20.04) on /dev/nvme0n1p6
Adding boot menu entry for UEFI Firmware Settings
done
$ tail -1 /etc/default/grub
GRUB_DISABLE_OS_PROBER=false
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
$ os-prober
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/nvme0n1p6:Ubuntu 20.04 LTS (20.04):Ubuntu:linux
grep menuentry /boot/grub/grub.cfg
Now I can see my Ubuntu 20.04 LTS boot entries in my /boot/grub/grub.cfg
file, as well as Windows boot entry:
$ grep 'menuentry.*Windows' /boot/grub/grub.cfg
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-C633-8883' {
HTH