
Dear Martin,
In message 20180713123413.4115-1-martin@geanix.com you wrote:
The existing bootcount feature is targeted systems with a primary, and a rescue boot setup, where the number of boot tries to the primary boot is tracked. If the number exceeds the limit, the alternative/rescue is booted.
This is not a correct summary of the current implementation. If the boot count exceeds the limit, some _alternative_boot_command_ is executed.
The trivial case is to boot another image / partion or such.
Butt nothing prevents you to run any more sophisticated scripts here.
This patch adds support for a more sophisticated setup, where more than two boot slots can exist, and the order of slots can be configured.
This can easily implemented with a few lines of shell code as well.
3 files changed, 268 insertions(+)
I think it makes no sense to add a lot of code that can be implemented as a few lines of shell scripts as well, especially as this code is neither time critical nor has the potential of becoming widely used.
NAKed-by: Wolfgang Denk wd@denx.de
Best regards,
Wolfgang Denk