Hey there
Any chance the device runs in local mode? After modifying a config.txt variable, the device supervisor should apply the changes and reboot the device. However configuration variables defined through the API will not apply to devices in local mode. more info
Hey! It’s not running in local mode. So are custom variables ONLY applied AFTER the device has connected with balenaCloud first? Preloading with those variables in place won’t work?
Preloading a device should definitely cause the variables to be applied before connecting to the cloud, so perhaps there’s a bug in this implementation. I can check that there’s no issue there and get back to you
We have confirmed internally that that file (config.txt) will be populated after the first boot of the device after preloading, regardless of connectivity. If you are inspecting the image immediately after preloading (and not on-device after boot), that would explain the behavior you are seeing. Are you able to check on a booted device?