Skip to content

Commit 2eea7fe

Browse files
Merge pull request #10945 from Luap99/rootless-cni-v3.2
[v3.2] Backport rootless cni fixes
2 parents 4136f8b + 1a8b2a0 commit 2eea7fe

File tree

3 files changed

+282
-199
lines changed

3 files changed

+282
-199
lines changed

contrib/cirrus/runner.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function _run_swagger() {
173173
trap "rm -f $envvarsfile" EXIT # contains secrets
174174
# Warning: These values must _not_ be quoted, podman will not remove them.
175175
#shellcheck disable=SC2154
176-
cat <<eof>>$envvarsfile
176+
cat <<eof >>$envvarsfile
177177
GCPJSON=$GCPJSON
178178
GCPNAME=$GCPNAME
179179
GCPPROJECT=$GCPPROJECT
@@ -334,6 +334,11 @@ msg "************************************************************"
334334

335335
# shellcheck disable=SC2154
336336
if [[ "$PRIV_NAME" == "rootless" ]] && [[ "$UID" -eq 0 ]]; then
337+
# Remove /var/lib/cni, it is not required for rootless cni.
338+
# We have to test that it works without this directory.
339+
# https://github.com/containers/podman/issues/10857
340+
rm -rf /var/lib/cni
341+
337342
req_env_vars ROOTLESS_USER
338343
msg "Re-executing runner through ssh as user '$ROOTLESS_USER'"
339344
msg "************************************************************"

0 commit comments

Comments
 (0)