Why I got two Fedoras boot order?

~ > sudo ls /boot/efi
EFI  mach_kernel  System
~ > sudo ls /boot/efi/EFI
Boot  fedora  Microsoft
~ > sudo ls /boot/efi/EFI/fedora
BOOTIA32.CSV  gcdia32.efi  grub.cfg	 grubx64.efi  mmx64.efi  shimia32.efi
BOOTX64.CSV   gcdx64.efi   grubia32.efi  mmia32.efi   shim.efi	 shimx64.efi
~ > efibootmgr
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,2349a0bc-eeea-47aa-8e58-46ff94231ff7,0x800,0x32000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000006f000100000010000000040000007fff0400
Boot0002* Fedora	HD(1,GPT,2349a0bc-eeea-47aa-8e58-46ff94231ff7,0x800,0x32000)/\EFI\FEDORA\SHIMX64.EFI
Boot0003* Fedora	HD(1,GPT,2349a0bc-eeea-47aa-8e58-46ff94231ff7,0x800,0x32000)/\EFI\FEDORA\SHIM.EFI0000424f
~ >


(Sorry for bad quality)

As you can see, I got two Fedoras boot order. One led to SHIM.EFI0000424f (this is the default since my last fresh install) and the other one led to SHIMX64.EFI.

Now, does it matter if I just pick randomly as my first boot order? and does it affect my dual-boot setup?

There’s interesting part tho. if I re-plug my drive that contain Fedora fresh install with two Fedoras boot order (regardless if it has dual-boot or not), one of them will be gone and it’s either SHIM.EFI0000424f or SHIMX64.EFI I didn’t check it back then when I did it.

Usually you get this kind of duplicates if you re-install Fedora a second time.

They are basically the same. The file SHIM.EFI and SHIMX64.EFI are two identical copies and the 0000424f part is some parameter string which isn’t part of the actual file name. If you look at the WIndows entry it has the parameter part 57494e444f57530 which hexadecimal for “WINDOWS”.

If you like, you can remove the entry you are not currently booted from like this

sudo efibootmgr --bootnum 0002 --delete-bootnum

What do you mean “second time”? I once had sanitized my drive through bios, it wipes everything even the partition style of my drive.. yet it still occurs.

At this point, I don’t even know what on earth is that. I assuming that just efibootmgr thing.

And also the UEFI boot menu was sanitized or not. Some UEFI implementations might do that for you, and sometimes you have to do it yourself.