[lug] Mixing Ubuntu and Fedora Bootloaders

Zan Lynx zlynx at acm.org
Tue Dec 24 22:19:01 MST 2019


On 12/24/2019 2:15 PM, D. Stimits wrote:
> However, is there any single command I can give to put the Fedora version back in place since this is not old style BIOS

"grub2-mkconfig -o /tmp/grub.conf"

and then I always run a "diff diff /boot/efi/EFI/fedora/grub.cfg 
/tmp/grub.conf" before copying the tmp file over the real one.

But hmm, if you're doing EFI boot then maybe the EFI boot environment 
isn't set right for Fedora either, because as I just noticed it has its 
own EFI directory.

Look for a tool named "efibootmgr"

"efibootmgr -v" run as root will display the various EFI boot options.

For example here is a piece of mine:
> BootCurrent: 0000
> Timeout: 1 seconds
> BootOrder: 0000,0002,0003,0001,0004,0005,0006,0007
> Boot0000* Fedora        HD(1,GPT,150a9fdd-ce74-48dc-bdab-300dcaade764,0x800,0x64000)/File(\EFI\FEDORA\SHIM.EFI)

If you already have Ubuntu and Fedora options in there you can use 
efibootmgr to select a different boot option.

Here is what it looks like on Ubuntu:
> BootCurrent: 0000
> Timeout: 1 seconds
> BootOrder: 0000
> Boot0000* ubuntu        HD(1,GPT,95be9590-4aeb-495f-ada8-44ff46430740,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)

-- 
                 Knowledge is Power -- Power Corrupts
                         Study Hard -- Be Evil


More information about the LUG mailing list