aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/user-systemd.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/config/user-systemd.m4 b/config/user-systemd.m4
index 5988945b4..c2105abce 100644
--- a/config/user-systemd.m4
+++ b/config/user-systemd.m4
@@ -14,11 +14,17 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
[install systemd preset files in dir [[/usr/lib/systemd/system-preset]]]),
systemdpresetdir=$withval,systemdpresetdir=/usr/lib/systemd/system-preset)
+ AC_ARG_WITH(systemdmodulesloaddir,
+ AC_HELP_STRING([--with-systemdmodulesloaddir=DIR],
+ [install systemd module load files into dir [[/usr/lib/modules-load.d]]]),
+ systemdmoduleloaddir=$withval,systemdmodulesloaddir=/usr/lib/modules-load.d)
+
+
AS_IF([test "x$enable_systemd" = xyes],
[
ZFS_INIT_SYSTEMD=systemd
ZFS_MODULE_LOAD=modules-load.d
- modulesloaddir=/usr/lib/modules-load.d
+ modulesloaddir=$systemdmodulesloaddir
])
AC_SUBST(ZFS_INIT_SYSTEMD)