lp:~c-lobrano/snappy/hw-assign-symlink

Created by Carlo Lobrano and last modified
Get this branch:
bzr branch lp:~c-lobrano/snappy/hw-assign-symlink
Only Carlo Lobrano can upload to this branch. If you are Carlo Lobrano please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Carlo Lobrano
Project:
Snappy
Status:
Development

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

723. By Carlo Lobrano

Merge master branch

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 AddSymlinkToHWDevice 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.go

hwaccess.go:
 - reworked RemoveHWAccess to manage symlinks
 - add some wrapper functions to make things simpler

hwaccess_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

716. By John Lenton

Speed up VersionCompare. by chipaca approved by mvo

715. By Leo Arias

Added the origin to the expected info output in the integration tests. by elopio approved by fgimenez

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
This branch contains Public information 
Everyone can see this information.

Subscribers