From b7ab6e41f8ec83d58ec74ef7e9c22e42e86ab1a7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 12 May 2022 11:32:52 -0500 Subject: 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 Link: https://android-review.googlesource.com/c/platform/external/u-boot/+/1446441 Signed-off-by: Guillaume La Roque --- cmd/ab_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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; -- cgit v1.2.3