mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci: unset XDG_RUNTIME_DIR when invoking podman
We need to pass environment variables from the CI environment to distinguish between CI environments. However, when `sudo -E` is used to run Podman it results in the XDG_RUNTIME_DIR environment variable being set incorrectly that prevents Podman from running. This patch fixes the following error in the GitHub Action virtual environment: error running container: error from /usr/bin/crun creating container for [/bin/sh -c /bin/prepare-for-fedora-rawhide.sh]: sd-bus call: Connection reset by peer Fixes: #1942 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
da4803beae
commit
eb4ecb3cfd
1 changed files with 5 additions and 1 deletions
6
.github/workflows/fedora-rawhide-test.yml
vendored
6
.github/workflows/fedora-rawhide-test.yml
vendored
|
|
@ -9,4 +9,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run Fedora Rawhide Test
|
||||
run: sudo -E make -C scripts/ci fedora-rawhide CONTAINER_RUNTIME=podman BUILD_OPTIONS="--security-opt seccomp=unconfined"
|
||||
# We need to pass environment variables from the CI environment to
|
||||
# distinguish between CI environments. However, we need to make sure that
|
||||
# XDG_RUNTIME_DIR environment variable is not set due to a bug in Podman.
|
||||
# FIXME: https://github.com/containers/podman/issues/14920
|
||||
run: sudo -E XDG_RUNTIME_DIR= make -C scripts/ci fedora-rawhide CONTAINER_RUNTIME=podman BUILD_OPTIONS="--security-opt seccomp=unconfined"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue