mirror of https://github.com/ipxe/ipxe.git
[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>pull/232/head
parent
b9de7e6eda
commit
8488c989cc
|
@ -83,6 +83,9 @@ static void embedded_init ( void ) {
|
||||||
image->name, strerror ( rc ) );
|
image->name, strerror ( rc ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Trust the selected image implicitly */
|
||||||
|
image_trust ( image );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Embedded image initialisation function */
|
/** Embedded image initialisation function */
|
||||||
|
|
Loading…
Reference in New Issue