[systemd-commits] src/core

Lennart Poettering lennart at kemper.freedesktop.org
Mon May 18 08:28:14 PDT 2015


 src/core/kmod-setup.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a363680faa063dbcb624a6dfc4798cff0a4ba9d5
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon May 18 17:27:37 2015 +0200

    kmod-setup: conditionalize kmod autoloading properly
    
    Load kdbus.ko only if we are built with kdbus, and load ip_tables.ko
    only if we are built with iptables support.

diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c
index 132c3e8..6cc5951 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;



More information about the systemd-commits mailing list