diff --git a/build_library/grub_install.sh b/build_library/grub_install.sh index 6c8d2f938f..fac4a01709 100755 --- a/build_library/grub_install.sh +++ b/build_library/grub_install.sh @@ -205,13 +205,13 @@ case "${FLAGS_target}" in "/usr/lib/shim/shim.efi" else sudo cp "${ESP_DIR}/${GRUB_DIR}/${CORE_NAME}" \ - "${ESP_DIR}/EFI/boot/grubx64.efi" + "${ESP_DIR}/EFI/boot/grub.efi" sudo cp "/usr/lib/shim/shim.efi" \ "${ESP_DIR}/EFI/boot/bootx64.efi" fi # copying from vfat so ignore permissions if [[ -n "${FLAGS_copy_efi_grub}" ]]; then - cp --no-preserve=mode "${ESP_DIR}/EFI/boot/grub.efi" \ + cp --no-preserve=mode "${ESP_DIR}/EFI/boot/grubx64.efi" \ "${FLAGS_copy_efi_grub}" fi if [[ -n "${FLAGS_copy_shim}" ]]; then