From 40cd74c506390f18bc22d3b5c0b1ba2e618c2b82 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Mon, 27 Aug 2012 17:18:38 +0200 Subject: image: Do not verify image types and devices if noverify was specified --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/image.c') diff --git a/src/image.c b/src/image.c index aed3d2f..bf3c2ee 100644 --- a/src/image.c +++ b/src/image.c @@ -143,7 +143,7 @@ static int image_append(struct image * image, const char * type, const char * de if ( device && device[0] ) { image->device = device_from_string(device); - if ( image->device == DEVICE_UNKNOWN ) { + if ( ! noverify && image->device == DEVICE_UNKNOWN ) { ERROR("Specified Device %s is unknown", device); image_free(image); return -1; @@ -155,7 +155,7 @@ static int image_append(struct image * image, const char * type, const char * de if ( type && type[0] ) { image->type = image_type_from_string(type); - if ( image->type == IMAGE_UNKNOWN ) { + if ( ! noverify && image->type == IMAGE_UNKNOWN ) { ERROR("Specified Image type %s is unknown", type); image_free(image); return -1; -- cgit v1.2.3