diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-08-27 14:55:26 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-09-15 20:00:28 +0200 |
commit | 1bcd006c5fffe41a36cc6fdc17623a90693f3cab (patch) | |
tree | f56f7b274c7294f3d5739c7376073808db8904b1 /contrib | |
parent | b906b9d8581c6fe745509e386c5324d9c76b8801 (diff) | |
download | podman-1bcd006c5fffe41a36cc6fdc17623a90693f3cab.tar.gz podman-1bcd006c5fffe41a36cc6fdc17623a90693f3cab.tar.bz2 podman-1bcd006c5fffe41a36cc6fdc17623a90693f3cab.zip |
CI: load ipv6 kernel modules for rootless tests
Rootless cni with ipv6 needs the `ip6_tables` module loaded, normally
the cni plugins will load this module but as rootless it does not have
the necessary permission to do so. Therefore we load it manually.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/cirrus/setup_environment.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh index d0c348d58..41b155943 100755 --- a/contrib/cirrus/setup_environment.sh +++ b/contrib/cirrus/setup_environment.sh @@ -173,6 +173,9 @@ esac case "$PRIV_NAME" in root) ;; rootless) + # load kernel modules since the rootless user has no permission to do so + modprobe ip6_tables || : + modprobe ip6table_nat || : # Needs to exist for setup_rootless() ROOTLESS_USER="${ROOTLESS_USER:-some${RANDOM}dude}" echo "ROOTLESS_USER=$ROOTLESS_USER" >> /etc/ci_environment |