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 9d392a0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
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 9d392a0

Please sign in to comment.