]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[image] Allow for non-executable image formats
authorMichael Brown <mcb30@ipxe.org>
Tue, 26 Nov 2013 16:29:45 +0000 (16:29 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 27 Nov 2013 11:27:50 +0000 (11:27 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/image.c

index 4101ff3b5de61ddd1232d3fc83a3daa8b8276ae9..d9d91013e24baae734e2abb59621321e50f15835 100644 (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;