浏览代码

[image] Allow for non-executable image formats

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 年前
父节点
当前提交
2c161283d5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/core/image.c

+ 2
- 0
src/core/image.c 查看文件

409
 	/* Check that this image can be executed */
409
 	/* Check that this image can be executed */
410
 	if ( ( rc = image_probe ( image ) ) != 0 )
410
 	if ( ( rc = image_probe ( image ) ) != 0 )
411
 		return rc;
411
 		return rc;
412
+	if ( ! image->type->exec )
413
+		return -ENOEXEC;
412
 
414
 
413
 	/* Mark image as selected */
415
 	/* Mark image as selected */
414
 	image->flags |= IMAGE_SELECTED;
416
 	image->flags |= IMAGE_SELECTED;

正在加载...
取消
保存