From bcfd3dea1d6a3ecee1336eca0682791c8dc3777c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 8 Jul 2014 00:35:49 +0100 Subject: [efi] Identify autoboot device by MAC address when chainloading Signed-off-by: Michael Brown --- src/arch/x86/prefix/efiprefix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/arch') diff --git a/src/arch/x86/prefix/efiprefix.c b/src/arch/x86/prefix/efiprefix.c index 216b99884..a0347680c 100644 --- a/src/arch/x86/prefix/efiprefix.c +++ b/src/arch/x86/prefix/efiprefix.c @@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include /** * 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 ); -- cgit v1.2.3-55-g7522