Hi Heinrich, On Mon, Dec 28, 2020 at 03:55:49PM +0100, Heinrich Schuchardt wrote: [...] > > ret = try_load_entry(bootorder[i], handle, load_options); > > - if (ret == EFI_SUCCESS) > > + if (ret == EFI_SUCCESS) { > > + if (IS_ENABLED(CONFIG_EFI_LOAD_FILE2_INITRD)) > > + ret = efi_initrd_register(); > > I think this is not enough. > > * We should uninstall the protocol once 'bootefi bootmgr' returns > to U-Boot. > * The EFI_LOAD_FILE2_PROTOCOL should be installed on the handle of > the loaded image for this purpose. >
Yep you are right. I completely missed that case, I'll fix it on v2 Regards /Ilias