bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow
authorAndreas Pretzsch <apr@cn-eng.de>
Thu, 2 Oct 2025 16:24:58 +0000 (18:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 13 Oct 2025 20:54:32 +0000 (14:54 -0600)
commitd6277523e54f4398dc5fe26e1d6151f400c974ca
treeefc559528b2f4e8dd5af512bcb27699033525340
parent48f21e66e360552c75d70a50421d0e0ed1f59e90
bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow

If there is no more active slot found in find_active_slot(), like when
all slots in BOOT_ORDER have a count of 0, the counters are reset to their
default value CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES. The BOOT_ORDER is _not_
changed, which is logically correct (especially for the case when there is
only one (active) slot set, e.g. BOOT_ORDER only contains 'B', probably due
to RAUC option prevent-late-fallback being set). Resetting the counters of
inactive slots also does not harm here, and is fine as a generic solution.

But the log_info statement in this scenario
  INFO: Resetting boot order and all slot tries
is incorrect. Change this to
  INFO: Resetting all slot tries to 3
with the 3 being inserted by CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES.

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
Reviewed-by: Martin Schwan <m.schwan@phytec.de>
boot/bootmeth_rauc.c