When trying to install a new Linux distribution (Debian or Mageia or Arch Linux) on my new machine, the installation failed with the following error messages:
The installation of grub-install dummy has failed
Unable to install grub-install dummy : Fatal Error
Installing for x86_64-efi platform.
Could not prepare Boot variable: Function not implemented
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
I’m using an Arch Linux image to boot into a shell environment.
lsblk fdisk /dev/sda p
This displays information about the partition table. It displays “Disklabel type: dos” which means that the partition is of type DOS/MBR which could cause trouble (according to the documentation in the ArchWiki).
Furthermore, in the UEFI/BIOS of my machine under “Advanced | OS selection” there is the option “UEFI CSM” set to “always”. CSM means Compatibility Support Module and it enables the legacy (BIOS) boot mode. This could be a problem.
Set the “UEFI CSM” (Compatibility Support Module) to “never” in the UEFI BIOS and reinstall the Linux distribution (or just the GRUB bootloader). The system now boots using UEFI. The partition type is still “dos”.