torizon / meta-toradex-torizon

Torizon OS OpenEmbedded Distro Layer
MIT License
6 stars 10 forks source link

systemd: Add script to recover from rescue or emergency mode #93

Closed jsrc27 closed 1 month ago

jsrc27 commented 1 month ago

Several services can trigger rescue or emergency mode on failure. If either mode is triggered after an OTA update the device will require manual intervention. This is not desirable for Torizon OS as updates should be able to recover on their own during failure.

Add a script that will trigger a reboot that will eventually cause a rollback if emergency or rescue mode is triggered while in the middle of an update.

Related-to: TOR-3390

jsrc27 commented 1 month ago

do we need this on master/scarthgap? If so, could you please cherry-pick this change?

Probably we do. The rescue/emergency behavior would be the same on these versions as well. I'll need to rebase the patches first though. I know the part of the code-base this patch affects has changed slightly in the latest versions of systemd.

jsrc27 commented 1 month ago

PRs created for master and scarthgap: