Chain Loader from Fedora33 on nvme to Fedora33 on /dev/sda

The grub menu from one Fedora 33 with btrfs cannot register an entry for( any other btrfs based distribution) To boot the alternate Fedora33, I have to enter the bios.
Can someone post an example of a chainloader entry for /etc/grub.cfg
which will allow the first Fedora33 to boot the second fedora33

#!/usr/bin/sh 
 exec tail -n +3 $0 
 # This file provides an easy way to add custom menu entries.  Simply type the
 # menu entries you want to add after this comment.  Be careful not to change
 # the 'exec tail' line above.
 menuentry 'FEDORA 33 on B' {
    search --fs-uuid --no-floppy --set=root D78C-9DB84  #<< change UUID as necessary
    chainloader (${root})/EFI/fedora/grubx64.efi
 }

===========
The replace the UUID D78C-9DB84 with the UUID of /boot/efi of the target system.

This will create a grub.cfg entry which will allow you to boot a second btrfs based FEDORA33

Save it as /etc/grub.d/40_OtherFedora . Prefix must be 40_ followed by your chosen name.

1 Like