From 2c161283d545f9f4aafc90a0c5fa10577a3998c4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 26 Nov 2013 16:29:45 +0000 Subject: [PATCH] [image] Allow for non-executable image formats Signed-off-by: Michael Brown --- src/core/image.c | 2 ++ 1 file changed, 2 insertions(+) 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;