summaryrefslogtreecommitdiffstats
path: root/config/user-systemd.m4
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2014-09-18 09:47:16 -0400
committerBrian Behlendorf <[email protected]>2014-10-28 09:41:14 -0700
commitb76707027ceca056f8630cbc6660b8e9aa0a8f37 (patch)
tree8972ebc95695a17ee4c6c9df1f1b6bba31315aef /config/user-systemd.m4
parent60e9f69c975b1ee40de2f91783e2817be44ec8a7 (diff)
Make systemd-modules-load.service file directory configurable
Installing outside of the prefix is not permissible under Gentoo Prefix. The package manager will cause the installation process to fail if/when it sees this. We could handle this by disabling systemd support on prefix because systemd does not check these paths, but the Gentoo Council decided that small files such as these should be installed. That means disabling systemd support on prefix is not an acceptable workaround. As a consequence, we need some way of control the directory into which these files are installed. Making this configurable increases our compliance with the freedesktop.org specification, which allows these files to be installed into /etc/modules-load.d: http://www.freedesktop.org/software/systemd/man/modules-load.d.html Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #2641
Diffstat (limited to 'config/user-systemd.m4')
-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)