Os-prober does not detects Fedora (even though I am currently booted into Fedora!)

As shown below, the os-prober does not detects Fedora (even though I am currently booted into Fedora!)

$ sudo os-prober
/dev/mapper/vgubuntu-Data:Ubuntu 22.10 (22.10):Ubuntu:linux
File descriptor 3 (/dev/pts/0) leaked on vgs invocation. Parent PID 22190: grub2-probe
File descriptor 9 (pipe:[188726]) leaked on vgs invocation. Parent PID 22190: grub2-probe
File descriptor 3 (/dev/pts/0) leaked on vgs invocation. Parent PID 22190: grub2-probe
File descriptor 9 (pipe:[188726]) leaked on vgs invocation. Parent PID 22190: grub2-probe
File descriptor 3 (/dev/pts/0) leaked on vgs invocation. Parent PID 22244: grub2-probe
File descriptor 9 (pipe:[188726]) leaked on vgs invocation. Parent PID 22244: grub2-probe
File descriptor 3 (/dev/pts/0) leaked on vgs invocation. Parent PID 22244: grub2-probe
File descriptor 9 (pipe:[188726]) leaked on vgs invocation. Parent PID 22244: grub2-probe
/dev/mapper/vgubuntu-UbuntuRoot:Ubuntu 23.04 (23.04):Ubuntu1:linux
[root@lamyer EFI]# sudo grub2-mkconfig -o "/boot/grub2/grub2-efi.cfg"
Generating grub configuration file ...
File descriptor 3 (pipe:[207085]) leaked on vgs invocation. Parent PID 27412: grub2-probe
File descriptor 9 (pipe:[205344]) leaked on vgs invocation. Parent PID 27412: grub2-probe
File descriptor 3 (pipe:[207085]) leaked on vgs invocation. Parent PID 27412: grub2-probe
File descriptor 9 (pipe:[205344]) leaked on vgs invocation. Parent PID 27412: grub2-probe
File descriptor 3 (pipe:[207085]) leaked on vgs invocation. Parent PID 27474: grub2-probe
File descriptor 9 (pipe:[205344]) leaked on vgs invocation. Parent PID 27474: grub2-probe
File descriptor 3 (pipe:[207085]) leaked on vgs invocation. Parent PID 27474: grub2-probe
File descriptor 9 (pipe:[205344]) leaked on vgs invocation. Parent PID 27474: grub2-probe
Found Ubuntu 22.10 (22.10) on /dev/mapper/vgubuntu-Data
Found Ubuntu 23.04 (23.04) on /dev/mapper/vgubuntu-UbuntuRoot
Adding boot menu entry for UEFI Firmware Settings ...
done

Any suggestions?

The generated file output should /boot/grub2/grub.cfg, so the command is:

grub2-mkconfig -o /boot/grub2/grub.cfg

After generating the config, take a look at the config file and see that your Fedora install is included/configured.

see https://docs.fedoraproject.org/en-US/quick-docs/bootloading-with-grub2/#create-a-grub-2-configuration for more information

fyi, os-prober is there to find “other” operating systems besides the installed Fedora.

1 Like