mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
[image] Implicitly trust first embedded image
iPXE when used as a NIC option ROM can sometimes be reloaded by the UEFI/BIOS and any pre-initialised memory will remain loaded. When the imgtrust command is run it sets `require_trusted_images'. Upon reloading, iPXE tries to load the first embedded image but fails as it is not marked trusted. Setting this flag ensures that imgtrust with the first embedded script is reentrant. Signed-off-by: Joe Groocock <jgroocock@cloudflare.com>
This commit is contained in:
committed by
Michael Brown
parent
b9de7e6eda
commit
8488c989cc
@@ -83,6 +83,9 @@ static void embedded_init ( void ) {
|
||||
image->name, strerror ( rc ) );
|
||||
return;
|
||||
}
|
||||
|
||||
/* Trust the selected image implicitly */
|
||||
image_trust ( image );
|
||||
}
|
||||
|
||||
/** Embedded image initialisation function */
|
||||
|
||||
Reference in New Issue
Block a user