Merge lp:~pwlars/charms/xenial/hwcert-pxe-server/hwcert-pxe-server-secure-boot into lp:~canonical-hw-cert/charms/xenial/hwcert-pxe-server/trunk

Proposed by Paul Larson
Status: Merged
Approved by: Paul Larson
Approved revision: 2
Merged at revision: 2
Proposed branch: lp:~pwlars/charms/xenial/hwcert-pxe-server/hwcert-pxe-server-secure-boot
Merge into: lp:~canonical-hw-cert/charms/xenial/hwcert-pxe-server/trunk
Diff against target: 37 lines (+13/-0)
1 file modified
playbooks/pxeserver.yaml (+13/-0)
To merge this branch: bzr merge lp:~pwlars/charms/xenial/hwcert-pxe-server/hwcert-pxe-server-secure-boot
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+323863@code.launchpad.net

Description of the change

This adds the shim we need, which also needs some other files like grubnetx64 to be a magic filename in order to work right. I've done these changes manually on the netboot server, but this way they will be in the charm in case it ever needs to be deployed again.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

This is in production already, so self-approving

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'playbooks/pxeserver.yaml'
2--- playbooks/pxeserver.yaml 2017-04-24 03:49:46 +0000
3+++ playbooks/pxeserver.yaml 2017-05-10 16:08:08 +0000
4@@ -8,6 +8,7 @@
5 update_cache=yes
6 with_items:
7 - pxelinux
8+ - shim-signed
9 - syslinux
10 - tftpd-hpa
11 tags:
12@@ -91,6 +92,12 @@
13 - install
14 - upgrade-charm
15
16+ - name: copy shimx64.efi.signed to tftpboot dir
17+ shell: cp /usr/lib/shim/shimx64.efi.signed /var/lib/tftpboot
18+ tags:
19+ - install
20+ - upgrade-charm
21+
22 - name: get grubnetx64.efi.signed to /var/lib/tftpboot
23 get_url:
24 url: http://archive.ubuntu.com/ubuntu/dists/xenial/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
25@@ -100,6 +107,12 @@
26 - install
27 - upgrade-charm
28
29+ - name: shim needs grubnetx64.efi.signed named grubx64.efi
30+ shell: cp /var/lib/tftpboot/grubnetx64.efi.signed /var/lib/tftpboot/grubx64.efi
31+ tags:
32+ - install
33+ - upgrade-charm
34+
35 - name: download kernel to /var/lib/tftpboot/boot
36 get_url:
37 url={{ kernel_url }}

Subscribers

People subscribed via source and target branches