]> git.proxmox.com Git - efi-boot-shim.git/commit - Makefile
Add a fallback loader for when shim is invoked as BOOTX64.EFI
authorPeter Jones <pjones@redhat.com>
Tue, 30 Apr 2013 13:46:22 +0000 (09:46 -0400)
committerPeter Jones <pjones@redhat.com>
Tue, 30 Apr 2013 13:46:22 +0000 (09:46 -0400)
commiteb9f7f1c23e682040240aaa399efa33488875fe9
tree2fd53198c1f861ee2d3c163072020b9f820325ad
parent8f6eace1897d210ec98fdc358f51345021b5a892
Add a fallback loader for when shim is invoked as BOOTX64.EFI

If shim is invoked as \EFI\BOOT\BOOT*.EFI and a file exists named
\EFI\BOOT\FALLBACK.EFI, try it instead of our second stage.  So don't
put fallback.efi on your install media in \EFI\BOOT, because that won't
do whatever it is you're hoping for, unless you're hoping not to start
the installer.

So here's the process for using this:
in /EFI/fedora/ (or whichever directory you happen to own), you put:
  shim.efi
  grub.efi
  boot.csv - format is: shim.efi,Nice Label,cmdline arguments,comments
           - filenames refer only to files in this directory, with no
     leading characters such as L"./" or L"/EFI/fedora/"
           - note that while this is CSV, the character encoding is
     UCS-2

and if /EFI/BOOT/BOOTX64.EFI doesn't already exist, then in /EFI/BOOT:
  shim.efi as BOOTX64.EFI
  fallback.efi

Signed-off-by: Peter Jones <pjones@redhat.com>
Makefile
fallback.c [new file with mode: 0644]