]> wimlib.net Git - wimlib/commitdiff
wimverify: Add --nocheck option
authorEric Biggers <ebiggers3@gmail.com>
Sat, 6 Sep 2014 23:25:00 +0000 (18:25 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 6 Sep 2014 23:25:00 +0000 (18:25 -0500)
doc/man1/imagex-verify.1.in
programs/imagex.c

index 0290e3d3cff4e663275b07aac7bc8e3d39da2987..870ac86e293cecb689e47ff044fc362fc89f94d8 100644 (file)
@@ -32,6 +32,9 @@ File glob of additional WIMs or split WIM parts to reference resources from.
 This option can be specified multiple times.  Note: \fIGLOB\fR is listed in
 quotes because it is interpreted by \fB@IMAGEX_PROGNAME@\fR and may need to be
 quoted to protect against shell expansion.
+.TP
+\fB--nocheck\fR
+Do not check the WIM file's contents against its integrity table (if it has one).
 .SH NOTES
 This is a read-only command.  It will never modify the WIM file.
 .PP
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;
                }