From f3a3f9230d56bec284cba0cdd5b7c833ad7796a4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 2 Nov 2023 18:47:04 -0400 Subject: [PATCH] ci: Test alongside installation in GH Actions Having a fast disposable VM is great for this. Signed-off-by: Colin Walters --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90501f5c..552c4c6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,3 +97,27 @@ jobs: run: sudo tar -C / -xvf bootc.tar.zst - name: Integration tests run: bootc internal-tests run-container-integration + privtest-alongside: + name: "Test install-alongside" + needs: build + runs-on: ubuntu-latest + steps: + - name: Download + uses: actions/download-artifact@v2 + with: + name: bootc.tar.zst + - name: Install + run: tar -xvf bootc.tar.zst + - name: Update host skopeo + run: | + echo 'deb http://cz.archive.ubuntu.com/ubuntu lunar main universe' | sudo tee -a /etc/apt/sources.list + sudo apt update + sudo apt upgrade skopeo + - name: Integration tests + run: | + set -xeuo pipefail + sudo podman run --rm -ti --privileged -v /:/target --pid=host --security-opt label=disable \ + registry.gitlab.com/centos/cloud/sagano/fedora-boot-tier-1-dev:eln bootc install-to-filesystem --target-no-signature-verification \ + --karg=foo=bar --disable-selinux --replace=alongside /target + ls -al /boot/loader/ + sudo grep foo=bar /boot/loader/entries/*.conf