Skip to content

Commit 067e12b

Browse files
committed
ci: add testing generate-update-metadata in bootc container
Thanks Colin's PR #936
1 parent f2ec1b3 commit 067e12b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ jobs:
5858
components_text='Available components: EFI'
5959
components_json='{"components":["EFI"]}'
6060
fi
61-
output=$(sudo podman run --rm -ti localhost/bootupd:latest bootupctl status | tr -d '\r')
61+
output=$(sudo podman run --rm localhost/bootupd:latest bootupctl status | tr -d '\r')
6262
[ "${components_text}" == "${output}" ]
63-
output=$(sudo podman run --rm -ti localhost/bootupd:latest bootupctl status --json)
63+
output=$(sudo podman run --rm localhost/bootupd:latest bootupctl status --json)
6464
[ "${components_json}" == "${output}" ]
6565
6666
- name: bootc install to disk
@@ -99,3 +99,12 @@ jobs:
9999
--disable-selinux --replace=alongside /target
100100
# Verify we injected static configs
101101
jq -re '.["static-configs"].version' /boot/bootupd-state.json
102+
103+
- name: bootupctl generate-update-metadata
104+
run: |
105+
set -xeuo pipefail
106+
# This will be helpful when we extend /usr
107+
sudo podman run --rm -it --privileged localhost/bootupd:latest \
108+
bash -c "rm -rf /usr/lib/bootupd/updates/{BIOS,EFI}.json && \
109+
mv /usr/lib/bootupd/updates/EFI /usr/lib/ostree-boot/efi/ && \
110+
bootupctl backend generate-update-metadata -vvv"

0 commit comments

Comments
 (0)