Could not create symlink to hw device with udev rules
Bug #1496319 reported by
Carlo Lobrano
on 2015-09-16
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
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
- Snappy Developers: Pending requested 2015-10-19
-
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)
| Jamie Strandboge (jdstrand) wrote : | #1 |
| Carlo Lobrano (c-lobrano) wrote : | #2 |
I would like to try and add this feature.
Carlo Lobrano (c-lobrano)
on 2015-09-19
| summary: |
- Could not create custom udev rules + Could not create symlink to hw device with udev rules |
| Michael Vogt (mvo) wrote : | #3 |
The hw-assign command got removed in ubuntu-core-16
| Changed in snappy: | |
| status: | New → Won't Fix |
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