lp:~c-lobrano/snappy/hw-assign-symlink
- Get this branch:
- bzr branch lp:~c-lobrano/snappy/hw-assign-symlink
Branch merges
- 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)
Related bugs
Bug #1496319: Could not create symlink to hw device with udev rules | Undecided | Won't Fix |
Related blueprints
Branch information
Recent revisions
- 724. By Carlo Lobrano
-
Some fixes
1. add missing includes and calls due to previous merge
2. avoid raising errors when adding symlink to a device already in write path
3. avoid raising "file not found" error when the last UDEV rule has been removed
4. add new error when creating multiple symlinks to the same device
5. add test for the new error at point 4 - 722. By Carlo Lobrano
-
Revert add deviceProperties for hw-assign
Better to apply this features to a different snappy command (UDEV related maybe)
- 721. By Carlo Lobrano
-
Update hwaccess_test.go
updated tests that make use of AddSymlinkToHWD
evice to manage the new parameter DeviceProperties - 720. By Carlo Lobrano
-
Add deviceProperties to hw-assign
used to define the characteristics of the device to trigger the Udev symlink rule
- 719. By Carlo Lobrano
-
Rework of hw-unassign for symlinks and other fixes
cmd_hwassign.go:
- Inverted hw assignement and symlink creation. The device is supposed to be already assigned to the snap, before creating the symlink.errors.go:
- added custom errors for symlinks.gohwaccess.go:
- reworked RemoveHWAccess to manage symlinks
- add some wrapper functions to make things simplerhwaccess_test.go:
- add tests for new functions - 718. By Carlo Lobrano
-
- Updated snappy.pot
- Add wrapper for checking whether a Snap has an apparmor json file
- Add wrapper for adding a new writepath for a Snap
- Added tests of new wrapper functions - 717. By Carlo Lobrano
-
Udev rule to add symlink to HW device with hw-assign command
- added tests to verify the presence of such udev rule when the command is issued
- added third optional argument "symlinkpath" to hw-assign command
- added new method AddSymlinkToHWDevice to hwaccess module
- added new error for invalid symlink
- wrapped function to strip snapname from a full appname_binary- or-service_ version string
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~snappy-dev/snappy/snappy-moved-to-github