Bladeren bron

[image] Allow for non-executable image formats

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 jaren geleden
bovenliggende
commit
2c161283d5
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2
    0
      src/core/image.c

+ 2
- 0
src/core/image.c Bestand weergeven

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

Laden…
Annuleren
Opslaan