Mount multiple/dynamic number of USB devices to container

Hi All,

I have a bit of a an odd use case where one of the containers I am running requires access to one of more USB devices.

In some cases only one USB is connected to a device running the application and in others up to four USB’s are connected and need to be accessible to the application containers.

Previous to using Balena this wasn’t an issue as I was able to add a udev rule which created a symlink to devices with the correct vendor id inside a folder, and then mount this directory as a volume to the container. Then my application code is able to setup serial comms to all of the device links in that volume.

As balena doesn’t allow bind mounts this won’t work. I have added the udev rule to balenaOS and it works to create the symlinks I just can’t work out a way to mount these to container.

Cheers
Chris