I have an USB FTDI device on USB Bus 02. Port 1 shown here:
root@turris:~# lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 5000M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=ftdi_sio, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
root@turris:~# ls -la /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 Nov 17 03:30 /dev/ttyUSB0
root@turris:~# ls -la /dev/bus/usb/*
drwxr-xr-x 7 root root 140 Nov 17 03:30 .
drwxr-xr-x 3 root root 60 Nov 17 03:30 ..
drwxr-xr-x 2 root root 60 Nov 17 03:30 001
drwxr-xr-x 2 root root 80 Nov 17 03:30 002
drwxr-xr-x 2 root root 60 Nov 17 03:30 003
drwxr-xr-x 2 root root 60 Nov 17 03:30 004
drwxr-xr-x 2 root root 80 Nov 17 03:30 005
I mounted it to an LXC container with the following code:
lxc.cgroup2.devices.allow = c 188:* rwm
lxc.mount.entry = /dev/bus/usb/ dev/bus/usb/ none bind,create=dir 0 0
lxc.mount.entry = /dev/ttyUSB0 dev/ttyUSB0 none bind,creat=file 0 0
On the LXC container, I see the device, but it is not mounted:
root@LXC:~# lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 5000M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=ftdi_sio, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
root@LXC:~# ls -la /dev/ttyU*
ls: cannot access '/dev/ttyU*': No such file or directory
root@LXC:~# ls -la /dev/bus/*
ls: cannot access '/dev/bus/*': No such file or directory
Any idea?