summaryrefslogtreecommitdiff
path: root/src/helpers/vyos-sudo.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-04-15 21:29:34 +0200
committerChristian Breunig <christian@breunig.cc>2025-05-17 14:30:45 +0200
commit74d848a981e25a5a3f563e355ba658ce70acf626 (patch)
tree3472c9dec02ab05883d315248e47ee1bfeb983de /src/helpers/vyos-sudo.py
parent1268ebb05e909027ecf1b9b4af4a6282d944efa7 (diff)
downloadvyos-1x-74d848a981e25a5a3f563e355ba658ce70acf626.tar.gz
vyos-1x-74d848a981e25a5a3f563e355ba658ce70acf626.zip
image: T1771: save previous image name to upgraded image persistent storage
When performing an image upgrade we will create a file named /config/first_boot with JSON data inside the new images persistent storage. The content of the file will look like: {"previous_image": "1.5-stream-2025-Q3"} The previous image name can be easily queried using "jq -r '.previous_image'". This is the base work required for an adjusted version of the vyos-router init script to support an automatic rollback to a previous image if things go sideways.
Diffstat (limited to 'src/helpers/vyos-sudo.py')
0 files changed, 0 insertions, 0 deletions