Open alexgg opened 3 years ago
Validation on a devenv with a draft v3 state endpoint:
[x] Preloading on an image with preloaded apps.json
with a v3 state supervisor
apps.json
[x] Preloading on an image with preloaded apps.json
with a v2 state supervisor (should not happen)
Fails with:
The preloaded app state and the current state in the image have a version mismatch. Please use afresh, not previously preloaded image file
[x] Preloading on an image without apps.json
with a v2 state supervisor
apps.json
[x] Preloading on an image without apps.json
with a v3 state supervisor (should not happen)
apps.json
This is to remain in draft state until the v3 target state API changes are merged
If the image we are preloading to contains an existing
apps.json
append the preloaded app to it instead of overwriting it.Fixes balena-io/balena-cli#2262
Relates to balena-io/balena-cli#2263
Change-type: patch Signed-off-by: Alex Gonzalez alexg@balena.io
Tested on a
raspberrypi4-64-2.75.0+rev1
image that does not contain a preloadedapps.json
, and on a genericx86-64-ext development build with an existingapps.json
with preloaded state.