I didn’t know for sure where to put this.
I have a container (non-privileged, and I’d like to keep it that way ), which needs a device. So I’ve added the following to my
devices: - "/dev/ttyS0:/dev/ttyAMA0"
For the Raspberry Pi, this works fine. But when I’m building it for the up-board, it has to be:
devices: - "/dev/ttyS1:/dev/ttyAMA0"
Is there any way this could be changed based on the device architecture / machine name, just like the Dockerfiles with
%%BALENA_MACHINE_NAME%%. Because now I’ve to change it based on the device I’m pushing it to, but it’d be better if I can just push to any device without thinking about it .
Thanks in advance!