aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-systemd.m4
diff options
context:
space:
mode:
authorAntonio Russo <[email protected]>2018-04-06 17:11:09 -0400
committerBrian Behlendorf <[email protected]>2018-04-06 14:11:09 -0700
commit55d80e651a8c19919b8ee6a1c05fb36ad97ab5ad (patch)
tree10250074931531d3b32418dc8780fafbc122f0f5 /config/user-systemd.m4
parent5c27ec10889d3d8f12d59fb7e5068ed2d8697c85 (diff)
systemd mount generator and tracking ZEDLET
zfs-mount-generator implements the "systemd generator" protocol, producing systemd.mount units from the cached outputs of zfs list, during early boot, integrating with systemd. Each pool has an indpendent cache of the command zfs list -H -oname,mountpoint,canmount -tfilesystem -r $pool which is kept synchronized by the ZEDLET history_event-zfs-list-cacher.sh Datasets not in the cache will be loaded later in the boot process by zfs-mount.service, including pools without a cache. Among other things, this allows for complex mount hierarchies. Reviewed-by: Fabian Grünbichler <[email protected]> Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Antonio Russo <[email protected]> Closes #7329
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 de2a44f10..5d1f5618a 100644
--- a/config/user-systemd.m4
+++ b/config/user-systemd.m4
@@ -20,6 +20,11 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
[install systemd module load files into dir [[/usr/lib/modules-load.d]]]),
systemdmoduleloaddir=$withval,systemdmodulesloaddir=/usr/lib/modules-load.d)
+ AC_ARG_WITH(systemdgeneratordir,
+ AC_HELP_STRING([--with-systemdgeneratordir=DIR],
+ [install systemd generators in dir [[/usr/lib/systemd/system-generators]]]),
+ systemdgeneratordir=$withval,systemdgeneratordir=/usr/lib/systemd/system-generators)
+
AS_IF([test "x$enable_systemd" = xcheck], [
AS_IF([systemctl --version >/dev/null 2>&1],
[enable_systemd=yes],
@@ -32,7 +37,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
AS_IF([test "x$enable_systemd" = xyes], [
ZFS_INIT_SYSTEMD=systemd
ZFS_MODULE_LOAD=modules-load.d
- DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
+ DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)" --define "_generatordir $(systemdgeneratordir)"'
modulesloaddir=$systemdmodulesloaddir
],[
DEFINE_SYSTEMD='--without systemd'
@@ -43,5 +48,6 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
AC_SUBST(DEFINE_SYSTEMD)
AC_SUBST(systemdunitdir)
AC_SUBST(systemdpresetdir)
+ AC_SUBST(systemdgeneratordir)
AC_SUBST(modulesloaddir)
])