On a second thought, maybe it's better to just guide the user, but keep all steps and their log output visible for the user in the web UI. Making the steps explicit user actions keeps the user in control (as far as possible here).
We can also ask the user to copy each step's log output, so in case something goes wrong we can get that info.
If something goes totally wrong in an automated process, the module may no longer boot. All diagnostic info would be lost in that case, as the user can then only reinstall the system via USB.
Opinions?
Regards, Michael
Am 17.04.26 um 15:05 schrieb Michael Balzer via OvmsDev:
And yes, we need to automate the upgrade, a normal user should only need to trigger the process, not perform the steps needed manually. We should even think about initiating the upgrade automatically once we gain some trust in it.
As part of the automation, I think we should disable the auto init on the intermediary reboots, so the system runs on a minimal setup when performing the critical steps.
-- Michael Balzer * Am Rahmen 5 * D-58313 Herdecke Fon 02330 9104094 * Handy 0176 20698926