serial-port interface: no feedback if symlink doesn't match expected pattern
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Paweł Stołowski |
Bug Description
I have a gadget snap with the following interface:
slots:
kobuki:
interface: serial-port
path: /dev/kobuki
usb-vendor: 0x0403
This represents the interface to the iClebo Kobuki from Yujin Robot. Its driver is configured by default to expect the device to be available at /dev/kobuki, so that's what I used for the path in the slot definition.
However, after I generated an image with this gadget and booted it, my interface was nowhere to be found. After a day, I learned by talking to people that this was due to regex used to validate the udev symlink: https:/
This information was not given on the interface documentation (https:/
description: | updated |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapd: | |
assignee: | nobody → Paweł Stołowski (stolowski) |
status: | Triaged → In Progress |
Changed in snapd: | |
status: | In Progress → Confirmed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
Issue being discussed here:
https:/ /forum. snapcraft. io/t/issues- encountered- while-creating- custom- gadget- and-image/ 66