Merge lp:~mvo/ubuntu/vivid/ubuntu-core-config/lp1460152-workaround into lp:ubuntu/wily/ubuntu-core-config
| Status: | Merged |
|---|---|
| Merged at revision: | 22 |
| Proposed branch: | lp:~mvo/ubuntu/vivid/ubuntu-core-config/lp1460152-workaround |
| Merge into: | lp:ubuntu/wily/ubuntu-core-config |
| Diff against target: |
94 lines (+59/-0) 5 files modified
debian/changelog (+19/-0) debian/install (+1/-0) debian/links (+1/-0) lib/systemd/system/snappy-workaround-apparmor.service (+11/-0) usr/bin/snappy-apparmor-lp1460152 (+27/-0) |
| To merge this branch: | bzr merge lp:~mvo/ubuntu/vivid/ubuntu-core-config/lp1460152-workaround |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sergio Schvezov (community) | Approve on 2015-06-05 | ||
| Ubuntu branches | 2015-06-05 | Pending | |
|
Review via email:
|
|||
| Sergio Schvezov (sergiusens) wrote : | # |
| Michael Vogt (mvo) wrote : | # |
Yeah, there is one more gotach here, there needs to be a "Before=
- 30. By Michael Vogt on 2015-06-05
-
lib/systemd/
system/ snappy- workaround- apparmor. service: add ubuntu- snappy. frameworks- pre.target
| Michael Vogt (mvo) wrote : | # |
I added the Before= in r30 but did not test it (sorry! time is short here).
@sergio The testplan looks great, you may need to change both channels.ini to edge, thats the only thing I can thing of. Many many thanks for testing this and lets hope we can land a fix inside apparmor sooon(ish) as I feel that will be much cleaner :)
| Michael Vogt (mvo) wrote : | # |
@After> yeah, it means that the writable mounts should all be in place. And yes, its confusing! I'm not even sure this is needed but I added it to be on the safe side.
| Jamie Strandboge (jdstrand) wrote : | # |
From the bug:
"FYI, the hash approach is slow for the normal case since we always have to perform an sum. Furthermore it doesn't take into account #include'd files that might also change (eg, apparmor is updated and has a different base abstraction). For the workaround, I guess it is ok since the slowdown will only be for a couple of profiles but I would have rather seen us unconditionally invalidating the cache when switching from a to b or vice versa."


ok, I'll manually stage this by:
- installing 15.04 stable
- changing channels.ini to edge
- snappy update'ing
- remount 'other' and insert this
- reboot
- profit
The code looks good, very clever of putting it here instead of the snappy code base itself :-)
I guess etc-writable. mount
+After=
just means after we can write to partitions (the systemd unit names still confuse me a bit).