From 1fa6a98e79db52e4ddcfc1db8a7f8eea5e96b7f0 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Tue, 9 Jun 2020 10:54:09 +0200 Subject: [PATCH] modules-load.c: allow MODULES_LOAD_PATH to be overridden Define MODULES_LOAD_PATH only when it's unset, this allows it to be overridden, for instance, by passing CFLAGS. Signed-off-by: Ming Liu --- plugins/modules-load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules-load.c b/plugins/modules-load.c index 1fcf5e65..a8bc7d04 100644 --- a/plugins/modules-load.c +++ b/plugins/modules-load.c @@ -32,7 +32,9 @@ #include "service.h" #include "conf.h" +#ifndef MODULES_LOAD_PATH #define MODULES_LOAD_PATH "/etc/modules-load.d" +#endif #define SERVICE_LINE \ ":%d name:modprobe.%s [2345] /sbin/modprobe %s %s -- Kernel module: %s"