Skip to content

Commit 70af520

Browse files
committed
ci: Update to podman 5.x in qemu-kvm-integration-tests bootc tests
Ubuntu 24.04's podman 4.9.3 does not work with the bootc-image-builder container: Bind-mounting the container storage into it makes the container's podman 5 fail with a storage error. Thus install podman 5.4 from Ubuntu 25.04 to regain compatibility. This is rather hackish, but as that is a stable release, it should not break in the future (wrt. library dependencies and such).
1 parent fbf783b commit 70af520

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/qemu-kvm-integration-tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,28 @@ jobs:
107107
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
108108
pip3 install "git+https://github.com/linux-system-roles/[email protected]"
109109
110+
# HACK: Drop this when moving this workflow to 26.04 LTS
111+
- name: Update podman to 5.x for compatibility with bootc-image-builder's podman 5
112+
if: steps.check_platform.outputs.supported && endsWith(matrix.scenario.image, '-bootc')
113+
run: |
114+
sed 's/noble/plucky/g' /etc/apt/sources.list.d/ubuntu.sources | sudo tee /etc/apt/sources.list.d/plucky.sources >/dev/null
115+
cat <<EOF | sudo tee /etc/apt/preferences.d/podman.pref >/dev/null
116+
Package: podman buildah golang-github-containers-common crun libgpgme11t64 libgpg-error0 golang-github-containers-image catatonit conmon containers-storage
117+
Pin: release n=plucky
118+
Pin-Priority: 991
119+
120+
Package: libsubid4 netavark passt aardvark-dns containernetworking-plugins libslirp0 slirp4netns
121+
Pin: release n=plucky
122+
Pin-Priority: 991
123+
124+
Package: *
125+
Pin: release n=plucky
126+
Pin-Priority: 400
127+
EOF
128+
129+
sudo apt update
130+
sudo apt install -y podman crun conmon containers-storage
131+
110132
- name: Configure tox-lsr
111133
if: steps.check_platform.outputs.supported
112134
run: >-

0 commit comments

Comments
 (0)