How to preload img with network connections and custom config.json pre-flash

Hey,

We are preparing for another deployment and I was wondering if anyone had any suggestions for how to preload our image with custom wifi networks and a custom config.json line.

Just general advice about how people go about configuring a large number of devices is also welcome.

-Thomas

Hey there,

You can inject custom configuration to an image using the Balena CLI (https://www.balena.io/docs/reference/cli/#config-inject-file). The examples demonstrate updating config.json directly on a drive, but an image file should also work.

Once you have a modified image, you can flash it, clone the drive, and provision many devices with it.

1 Like