Hello community,
We are preparing a golden balenaOS image that will be handed off to a hardware supplier for mass provisioning of devices.
In our setup, devices use a cellular modem and do not have direct connectivity to balenaCloud on first boot. The only way for the device to reach balenaCloud is through a proxy, so we need redsocks to be configured before the device is able to register or before the Supervisor API is reachable.
According to the documentation, there are two ways to enable the system proxy / redsocks:
-
Via the Supervisor
GET/PATCH /v1/device/host-configAPI -
By placing a
redsocks.conffile under/mnt/boot/system-proxy/
Since option (1) is not possible for initial provisioning in our case, we are planning to use option (2). However, the documentation does not clearly describe the expected workflow for this approach.
Since we need to configure this offline (modifying the .img or the SD card before the first boot), we would like to confirm the exact procedure to ensure the device comes online immediately.
Thanks in advance!