In alpine base image, changed default iptables backend to legacy for backward compatibility
This commit is contained in:
1 parent
d08787902a
commit
664e361ab4
4 files changed
+41
-17
No files matched your search
@@ -3,6 +3,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
[ -n "$WEAVE_DEBUG" ] && set -x
|
||||
|
||||
modprobe_safe() {
|
||||
modprobe $1 || echo "Ignore the error if \"$1\" is built-in in the kernel" >&2
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
[ -n "$WEAVE_DEBUG" ] && set -x
|
||||
|
||||
# If this is run from an older manifest, run the init script here
|
||||
[ "${INIT_CONTAINER}" = "true" ] || "$(dirname "$0")/init.sh"
|
||||
|
||||
@@ -24,7 +26,9 @@ setup_iptables_backend() {
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ $mode = "nft" ]; then
|
||||
printf "iptables backend mode: %s\n" "$mode"
|
||||
if [ "$mode" = "nft" ]; then
|
||||
[ -n "$WEAVE_DEBUG" ] && echo "Changing iptables symlinks..."
|
||||
rm /sbin/iptables
|
||||
rm /sbin/iptables-save
|
||||
rm /sbin/iptables-restore
|
||||
|
||||
Reference in new issue
Block a user