X Tutup
Skip to content

Commit 1d30879

Browse files
committed
kmod-setup: load ip_tables kmod at boot
The module is currently no auto-loadable (and this is unlikely to change anytime soon, given it's API is via getsockopt/setsockopt). It is needed by networkd and nspawn currently. Users who really don't like the module to be loaded have the option to blacklist it still, or not compile it at all. But for all others this should make things work out-of-the-box.
1 parent a4b756b commit 1d30879

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/core/kmod-setup.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,19 @@ int kmod_setup(void) {
6060
bool (*condition_fn)(void);
6161
} kmod_table[] = {
6262
/* auto-loading on use doesn't work before udev is up */
63-
{ "autofs4", "/sys/class/misc/autofs", true, NULL },
63+
{ "autofs4", "/sys/class/misc/autofs", true, NULL },
6464

6565
/* early configure of ::1 on the loopback device */
66-
{ "ipv6", "/sys/module/ipv6", true, NULL },
66+
{ "ipv6", "/sys/module/ipv6", true, NULL },
6767

6868
/* this should never be a module */
69-
{ "unix", "/proc/net/unix", true, NULL },
69+
{ "unix", "/proc/net/unix", true, NULL },
7070

7171
/* IPC is needed before we bring up any other services */
72-
{ "kdbus", "/sys/fs/kdbus", false, cmdline_check_kdbus },
72+
{ "kdbus", "/sys/fs/kdbus", false, cmdline_check_kdbus },
73+
74+
/* netfilter is needed by networkd, nspawn among others, and cannot be autoloaded */
75+
{ "ip_tables", "/proc/net/ip_tables_names", false, NULL },
7376
};
7477
struct kmod_ctx *ctx = NULL;
7578
unsigned int i;

0 commit comments

Comments
 (0)
X Tutup