mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-23 14:00:08 +00:00
[image] Allow for non-executable image formats
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
95851d1305
commit
2c161283d5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user