diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 8714666c03b685c5c956096868050d95f002e610..c8079c4fe81b71dfb74f5fcd74c351ae2fb77f31 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -207,6 +207,8 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt) if (!memcmp(bootefi_device_path[0].str, "N\0e\0t", 6)) loaded_image_info.device_handle = nethandle; + else + loaded_image_info.device_handle = bootefi_device_path; #endif #ifdef CONFIG_GENERATE_SMBIOS_TABLE efi_smbios_register();