]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Allow currently executing image to be opened via virtual filesystem
authorMichael Brown <mcb30@ipxe.org>
Fri, 5 May 2023 13:46:42 +0000 (14:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 5 May 2023 13:54:20 +0000 (14:54 +0100)
commit0bb0aea878bc9c2f775d967df83d3c081c1c34a2
tree8c00f79289f3c71592dd50ccee8742f9d91534b0
parentf9beb20e99abbfcbea7cf222ba692aa3cbf10df7
[efi] Allow currently executing image to be opened via virtual filesystem

When invoking a kernel via the UEFI shim, the kernel image must be
accessible via EFI_SIMPLE_FILE_SYSTEM_PROTOCOL but must not be present
in the magic initrd constructed from all registered images.

Re-register a currently executing EFI image and mark it as hidden,
thereby allowing it to be accessed via the virtual filesystem exposed
via EFI_SIMPLE_FILE_SYSTEM_PROTOCOL without appearing in the magic
initrd contents.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/efi_image.c