Hi all! Quick question about EFI system partition and GRUB bootloader.
My EFI system partition’s mount point is /boot/efi
. I always install/reinstall my GRUB bootloader into /boot/efi/EFI/endeavouros-xxxx
folder (with --bootloader-id=
option). It contains my grubx64.efi file.
Example:
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --modules="luks2 part_gpt part_msdos cryptodisk gcry_rijndael argon2 pbkdf2 gcry_whirlpool btrfs" --bootloader-id=endeavouros-5986 --recheck
Bootloader ID reflects folder name under EFI directory where GRUB file is placed. Please note, that It is not the same thing as EFI directory.
I am sure that I am using GRUB image in exactly that folder (endeavouros-xxxx
) to boot my system. Otherwise it just would not boot due to special configuration.
However, there is also /boot/efi/EFI/boot
folder in present since EOS installation. It contains bootx64.efi file.
What is that file for? Is GRUB using it in any way? Should I keep it in my EFI partition or can I safely remove it?
EndeavourOS is my only system (no dual-boot), and my UEFI configuration has only endeavouros-xxxx
boot option enabled. The files are different (sha512sum and by names).
I am asking that because I am learning how to set up Secure Boot and I don’t want to sign with my key bootloader if I am not even using it. Do note, however, that Secure Boot is not related to my question in any way, because I just reading about it, nothing more for now.
My question is: I want to know what for EOS installation uses folder boot
and bootx64.efi file under EFI directory (not grubx64.efi file and endeavouros-xxxx
folder). I understand, that most likely it is not distro-specific in any way, looks like it’s just something about GRUB bootloader that I don’t know yet.
Thank you in advance for your answers!