Skip to content

Commit

Permalink
[image] Allow for non-executable image formats
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Nov 27, 2013
1 parent 95851d1 commit 2c16128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/image.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2c16128

Please sign in to comment.