]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
wimverify: Add --nocheck option
[wimlib] / programs / imagex.c
index 82354feb7d47f3c24bb86e1a991dcb74eeed1c55..820c4338db53b43970fcc011f8edd49011a62808 100644 (file)
@@ -407,6 +407,7 @@ static const struct option update_options[] = {
 
 static const struct option verify_options[] = {
        {T("ref"), required_argument, NULL, IMAGEX_REF_OPTION},
+       {T("nocheck"), no_argument, NULL, IMAGEX_NOCHECK_OPTION},
 
        {NULL, 0, NULL, 0},
 };
@@ -4026,6 +4027,9 @@ imagex_verify(int argc, tchar **argv, int cmd)
                        if (ret)
                                goto out_free_refglobs;
                        break;
+               case IMAGEX_NOCHECK_OPTION:
+                       open_flags &= ~WIMLIB_OPEN_FLAG_CHECK_INTEGRITY;
+                       break;
                default:
                        goto out_usage;
                }