Page MenuHomeVyOS Platform

Recover from failed boots/upgrades automatically
Open, WishlistPublicFEATURE REQUEST

Description

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

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

erkin set Issue type to Feature (new functionality).Aug 31 2021, 6:24 PM
dmbaturin triaged this task as Wishlist priority.Jan 9 2024, 3:58 PM
dmbaturin edited projects, added VyOS 1.5 Circinus; removed VyOS 1.4 Sagitta.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.