I have a dual-boot setup with two ssds, with Fedora 35 on a NVME drive and OpenSUSE Tumbleweed on a SATA drive (sda).
[jeremy@fedora ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 512M 0 part
└─sda2 8:2 0 465.3G 0 part
├─system-swap 253:0 0 2G 0 lvm
└─system-root 253:1 0 463.3G 0 lvm
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 600M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
└─nvme0n1p3 259:3 0 929.9G 0 part /home
/
Fedora 35 is my everyday distro. The Tumbleweed install is recent, to check it out and compare to Fedora, etc. In the future I will probably put other distros on this secondary drive.
I can boot to either distro from the UEFI boot menu, but I have been trying for a few days to get Tumbleweed on to the grub menu so I can skip the UEFI boot menu altogether and I’m afraid I am stumped.
efibootmgr lists out both distros, pretty much as they appear in the UEFI boot menu.
[jeremy@fedora ~]$ sudo efibootmgr -v
BootCurrent: 0011
Timeout: 1 seconds
BootOrder: 0011,0010
Boot0010* opensuse HD(1,GPT,ce98452a-a914-435f-bff7-664a91e927b0,0x800,0x100000)/File(\EFI\OPENSUSE\GRUBX64.EFI)..BO
Boot0011* Fedora HD(1,GPT,3b94015c-1fbe-4fd5-8969-1e9aaa58db0f,0x800,0x12c000)/File(\EFI\FEDORA\SHIM.EFI)..BO
GRUB_DISABLE_OS_PROBER=“false” has been added to /etc/default/grub. I have tried it with and without quotes on the “false”; I get the impression either way should work.
GNU nano 5.8 /etc/default/grub
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU="false"
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_DISABLE_OS_PROBER="false"
Execute bits are on for 30_os-prober (and all other scripts in /etc/grub.d)
[root@fedora ~]# cd /etc/grub.d
[root@fedora grub.d]# ls -l
total 104
-rwxr-xr-x. 1 root root 9346 Oct 7 15:02 00_header
-rwxr-xr-x. 1 root root 236 Oct 7 15:02 01_users
-rwxr-xr-x. 1 root root 835 Oct 7 15:02 08_fallback_counting
-rwxr-xr-x. 1 root root 18669 Oct 7 15:02 10_linux
-rwxr-xr-x. 1 root root 833 Oct 7 15:02 10_reset_boot_success
-rwxr-xr-x. 1 root root 892 Oct 7 15:02 12_menu_auto_hide
-rwxr-xr-x. 1 root root 410 Oct 7 15:02 14_menu_show_once
-rwxr-xr-x. 1 root root 13613 Oct 7 15:02 20_linux_xen
-rwxr-xr-x. 1 root root 2562 Oct 7 15:02 20_ppc_terminfo
-rwxr-xr-x. 1 root root 10869 Oct 7 15:02 30_os-prober
-rwxr-xr-x. 1 root root 1122 Oct 7 15:02 30_uefi-firmware
-rwxr-xr-x. 1 root root 703 Nov 19 05:58 35_fwupd
-rwxr-xr-x. 1 root root 218 Oct 7 15:02 40_custom
-rwxr-xr-x. 1 root root 219 Oct 7 15:02 41_custom
-rw-r--r--. 1 root root 483 Oct 7 15:02 README
os-prober is finding OpenSUSE.
[jeremy@fedora ~]$ sudo os-prober
/dev/mapper/system-root:openSUSE Tumbleweed:openSUSE:linux
/dev/mapper/system-root:openSUSE Tumbleweed:openSUSE1:linux:btrfs:UUID=fa6d8436-fd7a-4d53-a799-da2ff5a9fdac:subvol=@/.snapshots/1/snapshot
grub2-mkconfig is finding openSUSE.
[jeremy@fedora ~]$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Generating grub configuration file ...
Found openSUSE Tumbleweed on /dev/mapper/system-root
Found openSUSE Tumbleweed on /dev/mapper/system-root
Adding boot menu entry for UEFI Firmware Settings ...
done
But then when I reboot, the grub menu just has a handful of Fedora kernels and an entry to get to UEFI settings.
I am aware that adding a 40_custom script could get TW onto the grub menu, but I would like to figure out how to get the os-prober option working if possible. I feel like it will make booting other distros in the future all the simpler, without having to put together a new 40_custom script every time.
Any insight would be appreciated, thank you!