Could not create symlink to hw device with udev rules
Bug #1496319 reported by
Carlo Lobrano
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
At the time of writing the only way to add Udev rules is using the hw-assing tool and only to assign a specific device node to a module.
In many applications other udev rules are needed, e.g. ability to create symlinks to use self picked device name in snap and or source code, execute commands when a device is connected, etc.
Related branches
lp:~c-lobrano/snappy/hw-assign-symlink
Rejected
for merging
into
lp:~snappy-dev/snappy/snappy-moved-to-github
- Snappy Developers: Pending requested
-
Diff: 731 lines (+504/-59)5 files modifiedcmd/snappy/cmd_hwassign.go (+32/-16)
po/snappy.pot (+15/-7)
snappy/errors.go (+16/-0)
snappy/hwaccess.go (+223/-36)
snappy/hwaccess_test.go (+218/-0)
summary: |
- Could not create custom udev rules + Could not create symlink to hw device with udev rules |
To post a comment you must log in.
Currently[1], oem snaps are able to add udev snippets to tag devices via the 'assign' yaml. It should be possible with hw-assign to resolve the symlink and tag the device in a similar manner.
Note: aiui, hw-assign is being reworked and there may be another mechanism in the future.
[1]https:/ /wiki.ubuntu. com/SecurityTea m/Specification s/SnappyConfine ment#Cgroups