Merge lp:~smoser/curtin/trunk.lp1662346 into lp:~curtin-dev/curtin/trunk

Proposed by Scott Moser
Status: Merged
Merged at revision: 460
Proposed branch: lp:~smoser/curtin/trunk.lp1662346
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 19 lines (+9/-0)
1 file modified
curtin/commands/curthooks.py (+9/-0)
To merge this branch: bzr merge lp:~smoser/curtin/trunk.lp1662346
Reviewer Review Type Date Requested Status
Joshua Powers (community) Approve
Server Team CI bot continuous-integration Approve
curtin developers Pending
Review via email: mp+316523@code.launchpad.net

Commit message

Install zipl in target on s390x arch.

Add installation of zipl via install_missing_packages.

To post a comment you must log in.
lp:~smoser/curtin/trunk.lp1662346 updated
450. By Scott Moser

merge from trunk

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
lp:~smoser/curtin/trunk.lp1662346 updated
451. By Scott Moser

fix variable name

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Joshua Powers (powersj) wrote :
lp:~smoser/curtin/trunk.lp1662346 updated
452. By Scott Moser

zipl is in s390-tools

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Joshua Powers (powersj) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'curtin/commands/curthooks.py'
2--- curtin/commands/curthooks.py 2017-02-06 20:58:54 +0000
3+++ curtin/commands/curthooks.py 2017-02-07 19:12:43 +0000
4@@ -621,6 +621,15 @@
5 pkg not in installed_packages:
6 needed_packages.append(pkg)
7
8+ arch_packages = {
9+ 's390x': [('s390-tools', 'zipl')],
10+ }
11+
12+ for pkg, cmd in arch_packages.get(platform.machine(), []):
13+ if not util.which(cmd, target=target):
14+ if pkg not in needed_packages:
15+ needed_packages.append(pkg)
16+
17 if needed_packages:
18 state = util.load_command_environment()
19 with events.ReportEventStack(

Subscribers

People subscribed via source and target branches