summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2022-05-12 11:32:52 -0500
committerAnand Gadiyar <gadiyar@ti.com>2022-05-12 11:49:16 -0500
commitb7ab6e41f8ec83d58ec74ef7e9c22e42e86ab1a7 (patch)
tree7d16ca24ba29e6588c9cef16ce4deaa1f7199d96 /cmd
parent71d043d5a82668343e4f210f78a63c85602bc44b (diff)
cmd: ab_select: Don't count boot-to-recovery as a boot attempt.
The slot rollback system is intended for normal boot failures after an OTA, and therefore, we should not attempt to change slots based on a failure to boot to recovery (or any other non-normal boot sequence). Signed-off-by: Ram Muthiah <rammuthiah@google.com> Link: https://android-review.googlesource.com/c/platform/external/u-boot/+/1446441 Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ab_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ab_select.c b/cmd/ab_select.c
index 6298fcfb60..689ad39428 100644
--- a/cmd/ab_select.c
+++ b/cmd/ab_select.c
@@ -26,7 +26,7 @@ static int do_ab_select(struct cmd_tbl *cmdtp, int flag, int argc,
return CMD_RET_FAILURE;
}
- ret = ab_select_slot(dev_desc, &part_info);
+ ret = ab_select_slot(dev_desc, &part_info, true);
if (ret < 0) {
printf("Android boot failed, error %d.\n", ret);
return CMD_RET_FAILURE;