Is it possible to set gadget mode configurations natively in Balena? For instance, by setting configuration variables or something like that.
Guidances suggest setting configurations manually after the flash (in the “resin-boot” folder) or manually change config.txt and cmdline.txt to enable the gadget mode. The only thing in these approaches is that configurations would be rewritten after the OS update.
Is there is a way to add some “update resistible” configuration for the gadget mode?