Hi,
I am trying to connect a usb scanner to a container (Incus 6.9 on debian 12). When I start the container all is well
devices:
s1500:
productid: 11a2
type: usb
vendorid: 04c5
## host
# lsusb
Bus 003 Device 010: ID 04c5:11a2 Fujitsu, Ltd ScanSnap S1500
# ls -l /dev/bus/usb/003/010
crw-rw-r-- 1 root root 189, 265 Feb 2 00:02 /dev/bus/usb/003/010
## container
# lsusb
Bus 003 Device 010: ID 04c5:11a2 Fujitsu, Ltd ScanSnap S1500
# ls -l /dev/bus/usb/003/010
crw-rw-r-- 1 root root 189, 265 Feb 2 08:11 /dev/bus/usb/003/010
The device can be accessed from the container.
If the scanner shuts down and reconnects, though, I am no longer able to access it from the container. The device number updates and this is reflected by lsusb on host and container. The udev entry on the host is also updated but the container keeps the stale device entry.
## host
# ls -l /dev/bus/usb/003
crw-rw-r-- 1 root root 189, 266 Feb 2 00:23 011
## container
# ls -l /dev/bus/usb/003
crw-rw-r-- 1 root root 189, 265 Feb 2 08:11 010
Is there some way to get the /dev entry in the container to update when the usb device is reconnected?
Thanks