Merge ~daniel-thewatkins/curtin/+git/curtin:lp1845914 into curtin:master

Proposed by Dan Watkins on 2019-09-30
Status: Merged
Approved by: Paride Legovini on 2019-09-30
Approved revision: 2d6054b4f079b85ea7e9dfe420e20da3c6eee884
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~daniel-thewatkins/curtin/+git/curtin:lp1845914
Merge into: curtin:master
Diff against target: 26 lines (+3/-1)
2 files modified
curtin/commands/curthooks.py (+2/-0)
tests/unittests/test_curthooks.py (+1/-1)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve on 2019-09-30
Paride Legovini 2019-09-30 Approve on 2019-09-30
Review via email: mp+373407@code.launchpad.net

Commit message

curthooks: use correct grub-efi package name on i386

i.e. grub-efi-ia32 instead of grub-efi-i386.

LP: #1845914

To post a comment you must log in.
Paride Legovini (legovini) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/curtin/commands/curthooks.py b/curtin/commands/curthooks.py
2index 2869c6c..d2c06c4 100644
3--- a/curtin/commands/curthooks.py
4+++ b/curtin/commands/curthooks.py
5@@ -890,6 +890,8 @@ def install_missing_packages(cfg, target, osfamily=DISTROS.debian):
6 uefi_pkgs.extend(['grub2-efi-x64-modules'])
7 elif osfamily == DISTROS.debian:
8 arch = util.get_architecture()
9+ if arch == 'i386':
10+ arch = 'ia32'
11 uefi_pkgs.append('grub-efi-%s' % arch)
12
13 # Architecture might support a signed UEFI loader
14diff --git a/tests/unittests/test_curthooks.py b/tests/unittests/test_curthooks.py
15index 614d37d..a1f41cb 100644
16--- a/tests/unittests/test_curthooks.py
17+++ b/tests/unittests/test_curthooks.py
18@@ -245,7 +245,7 @@ class TestInstallMissingPkgs(CiTestCase):
19 arch = 'i386'
20 self.mock_arch.return_value = arch
21 self.mock_machine.return_value = 'i386'
22- expected_pkgs = ['grub-efi-%s' % arch]
23+ expected_pkgs = ['grub-efi-ia32']
24 self.mock_machine.return_value = 'i686'
25 self.mock_uefi.return_value = True
26 target = "not-a-real-target"

Subscribers

People subscribed via source and target branches