mirror of
https://github.com/ipxe/ipxe
synced 2026-05-08 15:02:55 +03:00
[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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user