summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-01-23 15:22:52 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 03:34:12 +0000
commitd72d1f13c2644d072057cd3367360198d4cfe0f4 (patch)
tree2ae3864abd22e4de3871993fd87654bf0a4c7163 /recipes-kernel
parent729c4bb01402aac1348d5d40eea6a42ff2bc1934 (diff)
downloadmeta-virtualization-d72d1f13c2644d072057cd3367360198d4cfe0f4.tar.gz
linux-yocto: add iptables legacy kernel config for Docker
Kernel 6.18+ split iptables into legacy/nftables backends. Docker requires the legacy iptables support, so add the kernel configuration for the full dependency chain: - CONFIG_NETFILTER_XTABLES_LEGACY=y - CONFIG_IP_NF_IPTABLES_LEGACY=m - CONFIG_IP_NF_FILTER=m - CONFIG_IP_NF_NAT=m - CONFIG_IP_NF_TARGET_MASQUERADE=m Without these, Docker's iptables rules fail to load on 6.18+ kernels. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-yocto/extra-configs.cfg11
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-yocto/extra-configs.cfg b/recipes-kernel/linux/linux-yocto/extra-configs.cfg
index a43bbcbc..26f8b0c6 100644
--- a/recipes-kernel/linux/linux-yocto/extra-configs.cfg
+++ b/recipes-kernel/linux/linux-yocto/extra-configs.cfg
@@ -1 +1,10 @@
1# placeholder config fragment for local enable and debug \ No newline at end of file 1# placeholder config fragment for local enable and debug
2
3# Kernel 6.18+ split iptables into legacy/nftables backends
4# Docker uses legacy iptables, so we need the full dependency chain:
5# NETFILTER_XTABLES_LEGACY -> IP_NF_IPTABLES_LEGACY -> IP_NF_FILTER/NAT
6CONFIG_NETFILTER_XTABLES_LEGACY=y
7CONFIG_IP_NF_IPTABLES_LEGACY=m
8CONFIG_IP_NF_FILTER=m
9CONFIG_IP_NF_NAT=m
10CONFIG_IP_NF_TARGET_MASQUERADE=m \ No newline at end of file