mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
[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>
This commit is contained in:
@@ -165,6 +165,8 @@ void imgstat ( struct image *image ) {
|
||||
printf ( " [SELECTED]" );
|
||||
if ( image->flags & IMAGE_AUTO_UNREGISTER )
|
||||
printf ( " [AUTOFREE]" );
|
||||
if ( image->flags & IMAGE_HIDDEN )
|
||||
printf ( " [HIDDEN]" );
|
||||
if ( image->cmdline )
|
||||
printf ( " \"%s\"", image->cmdline );
|
||||
printf ( "\n" );
|
||||
|
||||
Reference in New Issue
Block a user