Re: [PATCH 2/6] efi_loader: Introduce helper functions for EFI

2020-12-28 Thread Ilias Apalodimas
Hi Heinrich, > > + > > + /* make sure we have enough space for replacements */ > > + if (u16_strsize(name) < sizeof(*name) * start + u16_strsize(L"")) { > > + ret = EFI_INVALID_PARAMETER; > > + goto out; > > + } > > + boot_order_size = sizeof(boot_order); > > + r

Re: [PATCH 2/6] efi_loader: Introduce helper functions for EFI

2020-12-28 Thread Heinrich Schuchardt
On 12/28/20 1:24 PM, Ilias Apalodimas wrote: A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. Since similar logic can be applied in the future for other system files (i.e DTBs). Let's add some helper functions which will retrieve and parse

[PATCH 2/6] efi_loader: Introduce helper functions for EFI

2020-12-28 Thread Ilias Apalodimas
A following patch introduces a different logic for loading initrd's based on the EFI_LOAD_FILE2_PROTOCOL. Since similar logic can be applied in the future for other system files (i.e DTBs). Let's add some helper functions which will retrieve and parse device paths via EFI variables. Signed-off-by: