Files
moby/hack/host/load-kernel-modules.sh
T
Akihiro Suda fc44b26e58 CI: extract VM provisioning into host scripts
Kernel module loading and guest package setup are embedded in the VM
workflow. This was sufficient when the guest only hosted the DIND
development container, but native testing needs provisioning that can
also be run and checked outside GitHub Actions.

Move the existing commands into hack/host scripts, executed as root in
the guest. Keep the socket's login user supplied by the runner so this
preparatory refactor preserves the existing Docker setup.

Assisted-by: Codex
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2026-09-15 14:03:22 +09:00

31 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
set -eux -o pipefail
cat << EOF > /etc/modules-load.d/docker.conf
br_netfilter
bridge
ip6_tables
ip6table_filter
ip6table_nat
ip_tables
ip_vs
iptable_filter
iptable_nat
nf_tables
overlay
tap
tun
veth
x_tables
xt_addrtype
xt_comment
xt_conntrack
xt_mark
xt_multiport
xt_nat
xt_tcpudp
EOF
systemctl restart systemd-modules-load.service