An extracted image is wholly derived from the original archive image.
If the original archive image has been verified and marked as trusted,
then this trust logically extends to any image extracted from it.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
if ( ( rc = register_image ( *extracted ) ) != 0 )
goto err_register;
+ /* Propagate trust flag */
+ if ( image->flags & IMAGE_TRUSTED )
+ image_trust ( *extracted );
+
/* Drop local reference to image */
image_put ( *extracted );