summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/kmod-setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c
index 132c3e866..6cc595171 100644
--- a/src/core/kmod-setup.c
+++ b/src/core/kmod-setup.c
@@ -65,11 +65,15 @@ int kmod_setup(void) {
/* this should never be a module */
{ "unix", "/proc/net/unix", true, NULL },
+#ifdef ENABLE_KDBUS
/* IPC is needed before we bring up any other services */
{ "kdbus", "/sys/fs/kdbus", false, is_kdbus_wanted },
+#endif
+#ifdef HAVE_LIBIPTC
/* netfilter is needed by networkd, nspawn among others, and cannot be autoloaded */
{ "ip_tables", "/proc/net/ip_tables_names", false, NULL },
+#endif
};
struct kmod_ctx *ctx = NULL;
unsigned int i;