mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user