Handle cases of running from systems with merged /sbin and /bin (e.g. F42+) but targeting a non-merged root #927
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-bootc | |
permissions: | |
actions: read | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
stream: [stream9, stream10] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Installdeps | |
run: sudo apt update && sudo apt install just | |
- name: Get a newer podman for heredoc support (from debian testing) | |
run: | | |
set -eux | |
echo 'deb [trusted=yes] https://ftp.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list | |
sudo apt update | |
sudo apt install -y crun/testing podman/testing skopeo/testing | |
- name: build | |
run: sudo just build --build-arg=base=quay.io/centos-bootc/centos-bootc:${{ matrix.stream }} | |
- name: unitcontainer | |
run: sudo just unitcontainer | |
- name: unittest | |
run: sudo just unittest | |
- name: bootc install | |
run: | | |
set -xeuo pipefail | |
sudo podman run --env BOOTC_SKIP_SELINUX_HOST_CHECK=1 --rm -ti --privileged -v /:/target --pid=host --security-opt label=disable \ | |
-v /dev:/dev -v /var/lib/containers:/var/lib/containers \ | |
localhost/ostree:latest bootc install to-filesystem --skip-fetch-check \ | |
--replace=alongside /target | |
# Verify labeling for /etc | |
sudo ls -dZ /ostree/deploy/default/deploy/*.0/etc |grep :etc_t: | |
- name: Upload test logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-suite-log-${{ matrix.stream }} | |
path: target/unittest |