Page MenuHomeVyOS Platform

Recover from failed boots/upgrades automatically
Open, Requires assessmentPublicFEATURE REQUEST


It seems like it should be a fairly simple task to make an install automatically recover from a bad boot or upgrade:

  1. On successful boot, "success" being defined by boot commit succeeding without error, a small string containing the current boot image is written to persistent storage somewhere. /boot?
  2. add system image broken.img, reboot
  3. Commit fails on boot. atrm timer started for like 3 minutes (or configurable?) Gives time to cancel for troubleshooting
  4. atrm triggers reboot. First changes the boot image back to the last successful one from #1. Maybe it mounts the last successful image and copies the failure logs to that image for later troubleshooting and digestion? Something like tar -zcvf /conf/faillog-20191020.tar.gz /var/log


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)