diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c index bf562b4d..8f87ad47 100644 --- a/src/swtpm_setup/swtpm_setup.c +++ b/src/swtpm_setup/swtpm_setup.c @@ -1555,6 +1555,10 @@ int main(int argc, char *argv[]) logerr(gl_LOGFILE, "--decryption requires --tpm2.\n"); goto error; } + if (pcr_banks) { + logerr(gl_LOGFILE, "--pcr-banks requires --tpm2.\n"); + goto error; + } } if (!(flags & SETUP_RECONFIGURE_F)) {