In alpine base image, changed default iptables backend to legacy for backward compatibility

This commit is contained in:
Raj Chaudhuri committed 2024-03-17 09:23:53 +05:30
1 parent d08787902a
commit 664e361ab4
4 files changed
+41 -17

No files matched your search

+2
View File
@@ -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
}
+5 -1
View File
@@ -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