Bug 236591

Summary: UEFI configration files different as Other OS
Product: Base System Reporter: sandwich <hj980959100>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: emaste, imp, michael.osipov, yklaxds
Priority: ---    
Version: 12.1-STABLE   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249320
Description Flags
my partition after complete the freebsd installation none

Description sandwich 2019-03-17 08:45:46 UTC
Created attachment 202928 [details]
my partition after complete the freebsd installation

When OS is successfully installed, it would have the relavant directory such Ubuntu and Microsoft in the EFI System Partition. The freebsd cann't normal generate the analogous directory while I configure all space in /, but when I use create item, it will generate the second EFI System Partition and the allocate space to /, in such situation, the freebsd can generate in the second EFI System Partition.
Comment 1 ykla 2019-03-17 12:50:00 UTC
Ubuntu : /efi/ubuntu/bootx64.efi
Gentoo : /efi/Gentoo/bootx64.efi
For FreeBSD: /efi/boot/bootx64.efi
But what is "boot"? I think it's should be "FreeBSD".
Comment 2 Ed Maste freebsd_committer 2020-09-14 15:48:19 UTC
(In reply to ykla from comment #1)

What version did you install? On a fresh installation of a -CURRENT snapshot my created ESP contains exactly one file:

Comment 3 Michael Osipov 2020-09-14 17:34:16 UTC
(In reply to Ed Maste from comment #2)

I assume 12-STABLE. Same here for 12.
Comment 4 Warner Losh freebsd_committer 2020-09-14 21:18:33 UTC
We should install /efi/freebsd/loader.efi always. And if there's no /efi/boot/bootXXX.efi, we should install loader.efi as that as a fallback for systems that don't grok efibootmgr configuration.