@@ -70,6 +70,12 @@ AC_ARG_WITH([libexec-leaf-dir],
[libexec_subdir=$withval],
[libexec_subdir=$PACKAGE_TARNAME])
+AC_ARG_WITH([xen-scriptdir],
+ AS_HELP_STRING([--with-xen-scriptdir=DIR],
+ [Path to directory for dom0 hotplug scripts. [SYSCONFDIR/xen/scripts]]),
+ [xen_scriptdir_path=$withval],
+ [xen_scriptdir_path=$sysconfdir/xen/scripts])
+
AC_ARG_WITH([xen-dumpdir],
AS_HELP_STRING([--with-xen-dumpdir=DIR],
[Path to directory for domU crash dumps. [LOCALSTATEDIR/lib/xen/dump]]),
@@ -137,7 +143,7 @@ AC_SUBST(INITD_DIR)
XEN_CONFIG_DIR=$CONFIG_DIR/xen
AC_SUBST(XEN_CONFIG_DIR)
-XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
+XEN_SCRIPT_DIR=$xen_scriptdir_path
AC_SUBST(XEN_SCRIPT_DIR)
case "$host_os" in
In the near future all fresh installations will have an empty /etc. The content of this directory will not be controlled by the package manager anymore. One of the reasons for this move is to make snapshots more robust. As a first step into this direction, add a knob to configure to allow storing the hotplug scripts to libexec because they are not exactly configuration. The current default is unchanged, which is /etc/xen/scripts. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- m4/paths.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)