Bootloader installer fails for Fedora 37 on MacBook Pro 2015 - Manjaro installs fine on the same machine

When installing Fedora 37 on a MacBook Pro 2015, I get the following error:

Bootloader installation has failed: Failed to set new efi boot target. This is most likely a kernel or firmware bug.

…with this context:

INFO:program:Running in chroot '/mnt/sysroot'... efibootmgr -c -w -L Fedora -d /dev/sda -p 1 -l \EFI\fedora\shimx64.efi
INFO:program:efibootmgr: ** Warning ** : Boot0000 has same label Fedora
INFO:program:efibootmgr: ** Warning ** : Boot0001 has same label Fedora
INFO:program:Could not prepare Boot variable: Invalid argument
DEBUG:program:Return code: 5
INFO:program:Running in chroot '/mnt/sysroot'... grub2-mkrelpath /boot/grub2
INFO:program:/grub2
DEBUG:program:Return code: 0
INFO:anaconda.modules.storage.bootloader.grub2:bootloader.py: used boot args: rhgb quiet 
INFO:program:Running in chroot '/mnt/sysroot'... grub2-set-default 611ca740fd6847ee929a9c194741d33f-6.0.7-301.fc37.x86_64
DEBUG:program:Return code: 0
INFO:program:Running in chroot '/mnt/sysroot'... grub2-editenv - set menu_auto_hide=1 boot_success=1
DEBUG:program:Return code: 0
INFO:program:Running in chroot '/mnt/sysroot'... grub2-mkconfig -o /boot/grub2/grub.cfg
INFO:program:Generating grub configuration file ...
INFO:program:Found Mac OS X on /dev/sda1
INFO:program:Adding boot menu entry for UEFI Firmware Settings ...
INFO:program:done
DEBUG:program:Return code: 0
ERROR:anaconda.modules.storage.bootloader.installation:Bootloader installation has failed: Failed to set new efi boot target. This is most likely a kernel or firmware bug.

The context is that I’m installing from a Fedora Live USB stick with the SSD of the MBP formatted to be empty with the Live USB stick’s “Disks” utility prior to attempting to install with any of the three partitioning options (automatic, custom, custom alternate GUI) – the error is always the same.

Any ideas for what to try next?

UPDATE: I tried installing the latest Manjaro Linux and it installed completely fine, no problem. So it seems to me this is either a bug in the Fedora 37 installer or missing support for Macs, the latter which doesn’t seem likely due to many people on the Internet saying they have successfully installed Fedora on a Mac.

Got the exact same error message while installing Fedora Linux 37 Server on an Apple MacMini from 2012… I let it continue its install and after a reboot, everything runs as expected…

For me it just shows the white-on-black boot menu with one option, and when I select that, it gives me an error about firmware boot not supported or something like that (I’m guessing due to Macs not supporting that or similar), so I think it means there are no valid boot options available.

UPDATE: I tried installing the latest Manjaro Linux and it installed completely fine, no problem. So it seems to me this is either a bug in the Fedora 37 installer or missing support for Macs, the latter which doesn’t seem likely due to many people on the Internet saying they have successfully installed Fedora on a Mac.

Same problem on a mid 2014 Macbook Pro.
Looks like there is a bug on the Fedora 37 installer regarding UEFI on macs…

But it is only with the installer, Fedora 37 works flawlesly. What I did to overcome the bug was to first install Fedora 36 and then upgrade to 37. No problem at all.

Here is a link on how to upgrade from 36 to 37, both with GUI or terminal.

PS: take into account that mac drivers may not work because of the kernel upgrade, I had to reinstall the wifi drivers.
This is what I did:

sudo dnf install broadcom-wl
sudo depmod -a
sudo modprobe wl

more info

Hope it helps and have a great day enjoying Fedora!

Running into the same issue on a late 2013 iMac.

Edit: this seems like a bug so I opened 2148206 – F37: Bootloader installer fails on early-mid-2010s Apple hardware

Hi, same issue when trying to install Fedora 37 on my macbook pro 2011

Mac is a strange beast with closed source undocumented hardware and heavily modified undocumented known things like EFI. Fedora is also strange being a spin of Red Hat Enterprise Linux used on high end HPC clusters with information here : https://www.redhat.com/en with latest cutting edge ressources targeted towards system administrators and advanced users. Advice : explore System76 or similar open source hardware or a simple ordinary device as Linux uses very small ressources …

Manjaro isn’t better or worse … just targeted towards a different audience. Fedora isn’t at odds against Apple, just saying ‘sorry, won’t work as this point of software development’.