Closed M1cha closed 10 months ago
this behavior is documented, so I don't think we can change it without introducing a breaking change:
if you expect a specific destination path, have you considered overriding it with --device /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0:/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
?
This looks like a classic case of "I should have read the documentation". I didn't know that option supports a destination path as well. Your suggestion works great, thx.
Issue Description
Steps to reproduce the issue
Steps to reproduce the issue
podman run --rm -it --userns auto --device /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 alpine
Describe the results you received
Podman ends up creating
/dev/ttyUSB0
inside the container with all the correct permissions, but/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
is missing.Describe the results you expected
I'd expect podman to resolve the symlink
/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
and create the (non-symlink) devicenode at that location instead of/dev/ttyUSB0
.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional information
No response