For my use case, I attach multiple USB CDC modem devices to a raspberry pi 4 running Balena OS. When logging into the host system, I can nicely use the /dev/serial/by-id/<unique device id>
symlink to consistently access the same device over and over.
However, in the deployed containers (based on balenalib/%%BALENA_MACHINE_NAME%%-alpine
), /dev
is mounted in the containers and connecting to e.g. /dev/ttyACM0
works flawlessly. However, in the container, I am not able to find the /dev/serial/by-id
folder.
Is there a way to enable this or achieve a similar consistent access from within the alpine container?