Skip to content

Commit

Permalink
manifest: Add bootupd for x86_64|aarch64
Browse files Browse the repository at this point in the history
This converts the EFI update directory from (rpm-)ostree specific
layout to bootupd layout.  Required for both initial
provisioning with bootupd as well as later updates.

Required by: coreos/coreos-assembler#1695
  • Loading branch information
cgwalters committed Sep 21, 2020
1 parent c2b4211 commit 307b934
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifest-lock.x86_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"bind-utils": {
"evra": "32:9.11.22-1.fc32.x86_64"
},
"bootupd": {
"evra": "0.1.1-1.fc32.x86_64"
},
"bsdtar": {
"evra": "3.4.3-1.fc32.x86_64"
},
Expand Down
10 changes: 10 additions & 0 deletions manifests/bootupd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Integration with https://github.com/coreos/bootupd
# xref https://github.com/coreos/fedora-coreos-tracker/issues/510
packages:
- bootupd

postprocess:
- |
#!/bin/bash
set -xeuo pipefail
/usr/bin/bootupctl backend generate-update-metadata /
5 changes: 5 additions & 0 deletions manifests/fedora-coreos-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,8 @@ packages-ppc64le:
- irqbalance
packages-aarch64:
- irqbalance

# See https://github.com/coreos/bootupd
arch-include:
x86_64: bootupd.yaml
aarch64: bootupd.yaml
2 changes: 2 additions & 0 deletions overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ enable fedora-coreos-pinger.service
# Provide information if no ignition is provided
enable coreos-check-ignition-config.service
enable coreos-check-ssh-keys.service
# See bootupd.yaml
enable bootupd.socket
5 changes: 5 additions & 0 deletions tests/kola/misc-ro
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ ok conditional initrd networking
if ! test -f /usr/share/licenses/fedora-coreos-config/LICENSE; then
fatal missing LICENSE
fi
ok LICENSE

case "$(arch)" in
x86_64|aarch64) bootupctl status; echo ok bootupctl;;
esac

# check that no files are unlabeled
unlabeled=$(find /var /etc -context '*:unlabeled_t:*')
Expand Down

0 comments on commit 307b934

Please sign in to comment.