summaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-27 17:18:38 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-27 17:18:38 +0200
commit40cd74c506390f18bc22d3b5c0b1ba2e618c2b82 (patch)
tree39c3bff8e1c438da8a7ad386aeca2118c944d0de /src/image.c
parentc92df7982900100385590b381cb09694b41ebda7 (diff)
download0xFFFF-40cd74c506390f18bc22d3b5c0b1ba2e618c2b82.tar.bz2
image: Do not verify image types and devices if noverify was specified
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c4
1 files changed, 2 insertions, 2 deletions
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;