balena preload breaks when using --config

Hello,
I initially opened a bug on github (see here balena preload breaks when using --config · Issue #2960 · balena-io/balena-cli · GitHub) but while waiting for a response i started thinking I may not be using the tool in the right way.

So, my goal is to create a base image of balena os, preloading it with the latest version of my app and an ssh public key I could use to ssh into the device from local network to troubleshoot when this cannot to cloudlink.

The commands I put together are as follow (also visible in the github ticket)

balena os download generic-amd64 --version v6.5.39+rev2 --output test.img
balena os build-config test.img generic-amd64 --output test.config.json
balena os configure test.img --version v6.5.39+rev2 --fleet <my-fleet> --config test.config.json
balena preload test.img --fleet <my-fleet> --commit <my-app-commit-id>

As anybody succeeded in this?

Hi @smic just wanted to let you know I left a response/question on the issue you opened

thank you very much @joshbwlng.
Looking forward for a fix

Hello @smic
As mentioned in your support ticket and the github, the recommended way is to use balena config generate

We appreciate the fact that having two different commands to achieve the same thing but also not working correctly can be confusing. We working towards improving the relevant commands and deprecating balena os build-config and balena os configure commands

thanks for raising this issue

1 Like