mirror of https://github.com/ipxe/ipxe.git
[image] Allow for non-executable image formats
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/17/head
parent
95851d1305
commit
2c161283d5
|
@ -409,6 +409,8 @@ int image_select ( struct image *image ) {
|
||||||
/* Check that this image can be executed */
|
/* Check that this image can be executed */
|
||||||
if ( ( rc = image_probe ( image ) ) != 0 )
|
if ( ( rc = image_probe ( image ) ) != 0 )
|
||||||
return rc;
|
return rc;
|
||||||
|
if ( ! image->type->exec )
|
||||||
|
return -ENOEXEC;
|
||||||
|
|
||||||
/* Mark image as selected */
|
/* Mark image as selected */
|
||||||
image->flags |= IMAGE_SELECTED;
|
image->flags |= IMAGE_SELECTED;
|
||||||
|
|
Loading…
Reference in New Issue