mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[efi] Identify autoboot device by MAC address when chainloading
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/device.h>
|
||||
#include <ipxe/efi/efi.h>
|
||||
#include <ipxe/efi/efi_driver.h>
|
||||
#include <ipxe/efi/efi_autoboot.h>
|
||||
|
||||
/**
|
||||
* EFI entry point
|
||||
@@ -41,6 +42,9 @@ EFI_STATUS EFIAPI _efi_start ( EFI_HANDLE image_handle,
|
||||
if ( ( efirc = efi_init ( image_handle, systab ) ) != 0 )
|
||||
goto err_init;
|
||||
|
||||
/* Record autoboot device (if any) */
|
||||
efi_set_autoboot();
|
||||
|
||||
/* Call to main() */
|
||||
if ( ( rc = main() ) != 0 ) {
|
||||
efirc = EFIRC ( rc );
|
||||
|
||||
Reference in New Issue
Block a user