Issue
Got following when installing Fedora 31 in my HP laptop.
Failed to set new efi boot target
Similar thing used to happened for me when installing Ubuntu based distros in order to fix this I used solution described here, which is install the grub2
mannually. As I observed, this is a hardware specific issue, because at that time same Ubuntu based distro installed fine in my desktop, but not in the my laptop.
But how to fix this issue in Fedora?
Solution
Solution was to modify the instructions given in this answer for Fedora, which is to install the grub2 manually after OS installation
Install Fedora without bootloader
- Click
Full disk summary and boot loader...
at the bottom of Installation Destination screen. - Select the hard disk that you
going install Fedora and click
Do not install boot loader
button. - And continue with installation process as usual.
Installing grub2 manually
# mount the new Fedora installation at /mnt
sudo mount /dev/sda3 /mnt # sda3 is root partition
sudo mount /dev/sda1 /mnt/boot/efi # sda1 is efi partition
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
# change the root to /mnt
sudo chroot /mnt
# create grub2 configuration
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
sudo reboot
References
Answered By - user158