To perform an upgrade using this repo (with very specific parameters in terms of source and target host OS versions):
- First, create a
paramsfile locally to use (cp params.example params) - Set a target commit in the created
paramsfile - Create a file called batch with line-separated UUIDs
- Run
./run_preupdate.shto confirm and prepare all devices inbatchare ready for upgrade - If
grep -i "fail\|error" preupdater.logreturns no output, the update can proceed. Otherwise, some supervisor updates may be required. - Finally, run
./run.shto perform the actual upgrade and reboot into the new host OS
balena devices -a "${APP}" > device-list.mega.log
awk '/true*${STARTING_OS}/{print $NF}' device-list.mega.log | awk -F/ '{print
awk '/Fail: Super/{print $1}' preupdater.log > ../fleetops-supervisor-update/batch
uuid="${UUID}"; until balena ssh "${uuid}" 2>/dev/null; do sleep 60; done
watch -n 120 ./monitor.sh ${APP} batch