Merge ~hloeung/layer-snap:master into ~stub/layer-snap:master

Proposed by Haw Loeung
Status: Merged
Merged at revision: bf780080825192ea208bffb60aa5d0bb0dfda52a
Proposed branch: ~hloeung/layer-snap:master
Merge into: ~stub/layer-snap:master
Diff against target: 14 lines (+3/-0)
1 file modified
reactive/snap.py (+3/-0)
Reviewer Review Type Date Requested Status
Stuart Bishop Approve
Review via email: mp+326208@code.launchpad.net

Description of the change

Work around LP:1699986 and install systemd package as well on Trusty.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

Yup

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/reactive/snap.py b/reactive/snap.py
2index 08974ae..2e9cea9 100644
3--- a/reactive/snap.py
4+++ b/reactive/snap.py
5@@ -73,6 +73,9 @@ def ensure_snapd():
6 # too closely to apt packaging. Perhaps this is a snap-only system.
7 if not shutil.which('snap'):
8 cmd = ['apt', 'install', '-y', 'snapd']
9+ # LP:1699986: Force install of systemd on Trusty.
10+ if get_series() == 'trusty':
11+ cmd.append('systemd')
12 subprocess.check_call(cmd, universal_newlines=True)
13
14 # Work around lp:1628289. Remove this stanza once snapd depends

Subscribers

People subscribed via source and target branches

to all changes: