]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Try all supported autoexec protocols
authorMichael Brown <mcb30@ipxe.org>
Thu, 5 Mar 2026 12:55:37 +0000 (12:55 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 5 Mar 2026 12:59:31 +0000 (12:59 +0000)
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>
src/interface/efi/efi_autoexec.c

index 4bb5a7a11b2c3c17fa5e2ddfa54022dee158c7b1..9125bfcf45615198506bc738de803a9487021faa 100644 (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 ) {