]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Allow autoexec script to be located alongside iPXE binary
authorMichael Brown <mcb30@ipxe.org>
Wed, 1 Feb 2023 23:54:19 +0000 (23:54 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 1 Feb 2023 23:54:19 +0000 (23:54 +0000)
commit6f250be279311d461f78bb17eb8b5b70ad90dd0a
tree07c07d85835367e6844965aba420ccc6811a5ac3
parentb6304f298499001a55045618e9fbf763b59b7321
[efi] Allow autoexec script to be located alongside iPXE binary

Try loading the autoexec.ipxe script first from the directory
containing the iPXE binary (based on the relative file path provided
to us via EFI_LOADED_IMAGE_PROTOCOL), then fall back to trying the
root directory.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/efi/efi_autoexec.h
src/interface/efi/efi_autoexec.c
src/interface/efi/efiprefix.c