mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
contrib/check-config.sh: fix NF_NAT_IPV4
CONFIG_NF_NAT_IPV4 was removed in kernel commit 3bf195ae6037e310, which made its way into v5.1-rc1. The functionality is now under NF_NAT which we already check for. Make the check for NF_NAT_IPV4 conditional. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
76b59065ae
commit
eeb53c1f22
1 changed files with 5 additions and 1 deletions
|
@ -196,7 +196,7 @@ flags=(
|
||||||
CGROUPS CGROUP_CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
|
CGROUPS CGROUP_CPUACCT CGROUP_DEVICE CGROUP_FREEZER CGROUP_SCHED CPUSETS MEMCG
|
||||||
KEYS
|
KEYS
|
||||||
VETH BRIDGE BRIDGE_NETFILTER
|
VETH BRIDGE BRIDGE_NETFILTER
|
||||||
NF_NAT_IPV4 IP_NF_FILTER IP_NF_TARGET_MASQUERADE
|
IP_NF_FILTER IP_NF_TARGET_MASQUERADE
|
||||||
NETFILTER_XT_MATCH_{ADDRTYPE,CONNTRACK,IPVS}
|
NETFILTER_XT_MATCH_{ADDRTYPE,CONNTRACK,IPVS}
|
||||||
IP_NF_NAT NF_NAT NF_NAT_NEEDED
|
IP_NF_NAT NF_NAT NF_NAT_NEEDED
|
||||||
|
|
||||||
|
@ -208,6 +208,10 @@ if [ "$kernelMajor" -lt 4 ] || ([ "$kernelMajor" -eq 4 ] && [ "$kernelMinor" -lt
|
||||||
check_flags DEVPTS_MULTIPLE_INSTANCES
|
check_flags DEVPTS_MULTIPLE_INSTANCES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -le 1 ]; then
|
||||||
|
check_flags NF_NAT_IPV4
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo 'Optional Features:'
|
echo 'Optional Features:'
|
||||||
|
|
Loading…
Reference in a new issue