From 6f250be279311d461f78bb17eb8b5b70ad90dd0a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 1 Feb 2023 23:54:19 +0000 Subject: [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 --- src/include/ipxe/efi/efi_autoexec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/efi/efi_autoexec.h b/src/include/ipxe/efi/efi_autoexec.h index 1f93b41cd..08ddf5836 100644 --- a/src/include/ipxe/efi/efi_autoexec.h +++ b/src/include/ipxe/efi/efi_autoexec.h @@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include -extern int efi_autoexec_load ( EFI_HANDLE device ); +extern int efi_autoexec_load ( EFI_HANDLE device, + EFI_DEVICE_PATH_PROTOCOL *path ); #endif /* _IPXE_EFI_AUTOEXEC_H */ -- cgit v1.2.3-55-g7522