diff options
author | Michael Brown | 2013-11-26 17:29:45 +0100 |
---|---|---|
committer | Michael Brown | 2013-11-27 12:27:50 +0100 |
commit | 2c161283d545f9f4aafc90a0c5fa10577a3998c4 (patch) | |
tree | 97a27d83f9996559a5d3f2c85d982009d2fd790d /src/core/image.c | |
parent | [pixbuf] Add generic concept of a pixel buffer (diff) | |
download | ipxe-2c161283d545f9f4aafc90a0c5fa10577a3998c4.tar.gz ipxe-2c161283d545f9f4aafc90a0c5fa10577a3998c4.tar.xz ipxe-2c161283d545f9f4aafc90a0c5fa10577a3998c4.zip |
[image] Allow for non-executable image formats
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/image.c')
-rw-r--r-- | src/core/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/image.c b/src/core/image.c index 4101ff3b..d9d91013 100644 --- a/src/core/image.c +++ b/src/core/image.c @@ -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; |