summaryrefslogtreecommitdiff
path: root/futility/updater.c
diff options
context:
space:
mode:
Diffstat (limited to 'futility/updater.c')
-rw-r--r--futility/updater.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/updater.c b/futility/updater.c
index a4e8a996..c737f16f 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -1615,8 +1615,6 @@ static enum updater_error_codes update_whole_firmware(
DEBUG("Failed to preserve some sections - ignore.");
INFO("Checking compatibility...");
- if (check_compatible_tpm_keys(cfg, image_to))
- return UPDATE_ERR_TPM_ROLLBACK;
if (!cfg->force_update) {
/* Check if the image_to itself is broken */
enum rootkey_compat_result r = check_compatible_root_key(
@@ -1644,6 +1642,8 @@ static enum updater_error_codes update_whole_firmware(
return UPDATE_ERR_ROOT_KEY;
}
}
+ if (check_compatible_tpm_keys(cfg, image_to))
+ return UPDATE_ERR_TPM_ROLLBACK;
/* FMAP may be different so we should just update all. */
if (write_firmware(cfg, image_to, NULL) ||