mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-05 20:36:28 +02: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:
parent
b677399da1
commit
3df8f9c379
@ -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 ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user