you could add --removable to the grub-install command if you want
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable --recheck
Tip: If you use the option
--removablethen GRUB will be installed toesp/EFI/BOOT/BOOTX64.EFI(oresp/EFI/BOOT/BOOTIA32.EFIfor thei386-efitarget) and you will have the additional ability of being able to boot from the drive in case EFI variables are reset or you move the drive to another computer. Usually you can do this by selecting the drive itself similar to how you would using BIOS. If dual booting with Windows, be aware Windows usually places an EFI executable there, but its only purpose is to recreate the UEFI boot entry for Windows. If you are installing GRUB on a Mac, you will have to use this option. If you execute a BIOS update, this update might delete the existing UEFI boot entries. Therefore, it is a potential fallback strategy to have the “removable” boot entry enabled.