david/ipxe
Archived
1
0

[image] Allow for non-executable image formats

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-11-26 16:29:45 +00:00
parent 95851d1305
commit 2c161283d5

View File

@ -409,6 +409,8 @@ int image_select ( struct image *image ) {
/* Check that this image can be executed */
if ( ( rc = image_probe ( image ) ) != 0 )
return rc;
if ( ! image->type->exec )
return -ENOEXEC;
/* Mark image as selected */
image->flags |= IMAGE_SELECTED;