LAVA should provide a list of required usb devices
When running inside a docker container, the host should have a way to know which device to attach to which docker container. When using LAVA docker container, this information can be dynamic.
LAVA should provide a simple interface (using files/symlinks/...) to list the usb devices that a given docker container want.
/var/lib/lava/dispatcher/tmp/<job_id>/, create a file with the list of required usb devices and the name of the docker containers.
$CONTAINER_NAME_1: - $USB_1 - $USB_2 $CONTAINER_NAME_2: - $USB_3
On the host, install a udev script that will:
- add the usb devices to each containers that require it