From df4b628740bef19eb067459d02a789fbf8d3a479 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 6 Sep 2014 18:25:00 -0500 Subject: [PATCH] wimverify: Add --nocheck option --- doc/man1/imagex-verify.1.in | 3 +++ programs/imagex.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/doc/man1/imagex-verify.1.in b/doc/man1/imagex-verify.1.in index 0290e3d3..870ac86e 100644 --- a/doc/man1/imagex-verify.1.in +++ b/doc/man1/imagex-verify.1.in @@ -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 diff --git a/programs/imagex.c b/programs/imagex.c index 82354feb..820c4338 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -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; } -- 2.43.0