[efi] Try all supported autoexec protocols

When chainloaded from another iPXE, there will be both a virtual
filesystem and a managed network protocol available through which we
could attempt to load autoexec.ipxe.

Try both of these, with the virtual filesystem attempted first so that
an autoexec.ipxe that was explicitly downloaded by the chainloading
iPXE will have the highest priority.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2026-03-05 12:55:37 +00:00
parent b677399da1
commit 3df8f9c379

View File

@ -198,7 +198,7 @@ int efi_autoexec_load ( void ) {
/* Try loading */
if ( ( rc = loader->load ( handle, &image ) ) != 0 )
return rc;
continue;
/* Discard zero-length images */
if ( ! image->len ) {