summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--futility/updater_quirks.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/futility/updater_quirks.c b/futility/updater_quirks.c
index e5ee5c1b..5d996ad5 100644
--- a/futility/updater_quirks.c
+++ b/futility/updater_quirks.c
@@ -411,6 +411,15 @@ static int quirk_preserve_me(struct updater_config *cfg)
return 0;
}
+ /*
+ * b/213706510: subratabanik@ confirmed CSE may modify itself while we
+ * are doing system update, and currently the 'preserve' is done by
+ * flashing the same (e.g., "previously read") contents to skip erasing
+ * and writing; so we have to use the diff image to prevent contents
+ * being changed when writing.
+ */
+ cfg->use_diff_image = 1;
+
return 1;
}