Merge ~mwhudson/curtin:lp-1927703 into curtin:master

Proposed by Michael Hudson-Doyle
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: 7d8ba7c4ee4ff935af6a46b2a6ddd81a097bd38e
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~mwhudson/curtin:lp-1927703
Merge into: curtin:master
Diff against target: 16 lines (+3/-2)
1 file modified
curtin/commands/curthooks.py (+3/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Ryan Harper (community) Approve
Review via email: mp+402473@code.launchpad.net

Commit message

curthooks: always install shim-signed if available (when UEFI booted)

Rather than just on amd64. It's been available on arm64 since at least
20.04 (and is in bionic-updates).

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Paride Legovini (paride) wrote :

The annoying flaky fail

************* Module curtin.commands.install_grub
curtin/commands/install_grub.py:93:19: E1101: Instance of 'Distros' has no 'debian' member (no-member)
curtin/commands/install_grub.py:155:28: E1101: Instance of 'Distros' has no 'redhat' member (no-member)
curtin/commands/install_grub.py:246:28: E1101: Instance of 'Distros' has no 'debian' member (no-member)
curtin/commands/install_grub.py:250:30: E1101: Instance of 'Distros' has no 'redhat' member (no-member)
curtin/commands/install_grub.py:263:28: E1101: Instance of 'Distros' has no 'debian' member (no-member)
[...]

Retriggering.

Revision history for this message
Ryan Harper (raharper) wrote :

LGTM

review: Approve
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Although it turns out that shim-signed is somewhat broken on arm64 until the current round of shim/grub SRUs are complete, so I'll hold off merging this until that happens (which should be soon)

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

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 8ed4f5f..647a0bf 100644
3--- a/curtin/commands/curthooks.py
4+++ b/curtin/commands/curthooks.py
5@@ -1287,8 +1287,9 @@ def install_missing_packages(cfg, target, osfamily=DISTROS.debian):
6 if distro.has_pkg_available(uefi_pkg_signed):
7 uefi_pkgs.append(uefi_pkg_signed)
8
9- # AMD64 has shim-signed for SecureBoot support
10- if arch == "amd64":
11+ # amd64 and arm64 (since bionic) has shim-signed for
12+ # SecureBoot support
13+ if distro.has_pkg_available("shim-signed"):
14 uefi_pkgs.append("shim-signed")
15 else:
16 raise ValueError('Unknown grub2 package list for distro: %s' %

Subscribers

People subscribed via source and target branches