15

On an efi system it it possible to run arbitrary efi binaries.

Especially I can use the efi shell (one efi binary) to run grub (another efi binary).

Is it also possible to use grub to run for example an efi shell?

(In theory this should be no problem, but I did not find the correct command to start such a binary.)

2
  • Is that what the chainloader command does?
    – muru
    Apr 18, 2016 at 21:16
  • KeyTool.efi is a nice menu driven launcher for efi-binaries, see my below answer for details.
    – dotbit
    Nov 6, 2018 at 7:09

2 Answers 2

18

Yes, and here's a short example taken from Rod Smith's great page on GRUB 2/EFI Boot Loading

To chainload another EFI boot loader, one uses GRUB2 chainloader

The following grub2 menuentry example will run an EFI bootloader

menuentry "Windows 7" {
        insmod part_gpt
        insmod chain
        set root='(hd0,gpt1)'
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
1
  • 5
    as opposed to hard-coding the drive/partition using set root='', I recommend using: search --no-floppy --fs-uuid --set=root <UUID> where <UUID> is the output from the blkid command
    – Paul-K
    Sep 24, 2019 at 22:30
0

yes! modify the ARCH-Linux installation ISO-image onto a thumdrive for easy running of all efi that you manage to find or build: see: https://wiki.archlinux.org/index.php/Talk:Unified_Extensible_Firmware_Interface

"actually run the *.efi files on a PC"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .