I am using RW_LEGACY firmware and trying to install Arch Linux. I get to the bootloader part and try doing UEFI or BIOS but both of them lead to not booting into GRUB from the edk2 menu. It leads me to a terminal with Shell and I can’t boot into the system. Can someone give me steps on how to install the bootloader because it doesn’t show for me.
add --removable to grub installation command eg
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Arch Linux"
Source: GRUB - ArchWiki
If you are using a different bootloader (such as systemd-boot) you can achieve the same effect by moving its executable (ESP)/EFI//bootloader.efi to (ESP)/EFI/BOOT/BOOTX64.EFI
For example with systemd-boot and the esp mounted at /boot it might be something like
# mkdir -p /boot/EFI/BOOT/
# cp /boot/EFI/systemd/systemd-boot.efi /boot/EFI/BOOT/BOOTX64.EFI