]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[image] Allow for images to be hidden from lists of all images
authorMichael Brown <mcb30@ipxe.org>
Thu, 4 May 2023 13:21:42 +0000 (14:21 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 5 May 2023 13:54:20 +0000 (14:54 +0100)
commitf9beb20e99abbfcbea7cf222ba692aa3cbf10df7
tree337aef1fa6a9a454a36fd54f278db82791c69394
parentf93e6b712ff2beb7ea4e169a681b8144785f3e49
[image] Allow for images to be hidden from lists of all images

When invoking a kernel via the UEFI shim, the kernel (and potentially
also a helper binary such as GRUB) must be accessible via the virtual
filesystem exposed via EFI_SIMPLE_FILE_SYSTEM_PROTOCOL but must not be
present in the magic initrd constructed from all registered images.

Allow for images to be flagged as hidden, which will cause them to be
excluded from API-level lists of all images such as the virtual
filesystem directory contents, the magic initrd, or the Multiboot
module list.  Hidden images remain visible to iPXE commands including
"imgstat", which will show a "[HIDDEN]" flag for such images.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c
src/arch/x86/image/multiboot.c
src/include/ipxe/image.h
src/interface/efi/efi_file.c
src/usr/imgmgmt.c