BUILD_MAKE_VARS := sbindir bindir LIBEXEC LIBEXEC_BIN libdir SHAREDIR \
XENFIRMWAREDIR XEN_CONFIG_DIR XEN_SCRIPT_DIR XEN_LOCK_DIR \
- XEN_RUN_DIR XEN_PAGING_DIR
+ XEN_RUN_DIR XEN_PAGING_DIR XEN_DUMP_DIR
buildmakevars2file = $(eval $(call buildmakevars2file-closure,$(1)))
define buildmakevars2file-closure
oxenstored.
--with-xenstored=name
+The path where to store core dumps for domUs which are configured with
+coredump-destroy or coredump-restart can be specified with this option.
+ --with-xen-dumpdir=DIR
+
Instead of starting the tools in dom0 with sysv runlevel scripts they
can also be started by systemd. If this option is enabled xenstored will
receive the communication socked directly from systemd. So starting it
BASH_COMPLETION_DIR := $(CONFIG_DIR)/bash_completion.d
XEN_LOCK_DIR := @XEN_LOCK_DIR@
XEN_PAGING_DIR := @XEN_PAGING_DIR@
+XEN_DUMP_DIR := @XEN_DUMP_DIR@
XENFIRMWAREDIR := @XENFIRMWAREDIR@
tools
xen
subdirs
+XEN_DUMP_DIR
XEN_PAGING_DIR
XEN_LOCK_DIR
XEN_SCRIPT_DIR
enable_option_checking
with_initddir
with_sysconfig_leaf_dir
+with_xen_dumpdir
enable_xen
enable_tools
enable_stubdom
options for runlevel scripts and daemons such as
xenstored. This should be either "sysconfig" or
"default". [sysconfig]
+ --with-xen-dumpdir=DIR Path to directory for domU crash dumps.
+ [LOCALSTATEDIR/lib/xen/dump]
Report bugs to <xen-devel@lists.xen.org>.
Xen Hypervisor home page: <http://www.xen.org/>.
CONFIG_LEAF_DIR=$config_leaf_dir
+
+# Check whether --with-xen-dumpdir was given.
+if test "${with_xen_dumpdir+set}" = set; then :
+ withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
+else
+ xen_dumpdir_path=$localstatedir/lib/xen/dump
+fi
+
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging
+XEN_DUMP_DIR=$xen_dumpdir_path
+
+
case "$host_cpu" in
i[3456]86|x86_64)
=item B<coredump-destroy>
-write a "coredump" of the domain to F</var/xen/dump/NAME> and then
+write a "coredump" of the domain to F</var/lib/xen/dump/NAME> and then
destroy the domain.
=item B<coredump-restart>
-write a "coredump" of the domain to F</var/xen/dump/NAME> and then
+write a "coredump" of the domain to F</var/lib/xen/dump/NAME> and then
restart the domain.
=back
=head1 FILES
F</etc/xen/NAME.cfg>
-F</var/xen/dump/NAME>
+F</var/lib/xen/dump/NAME>
=head1 BUGS
Dumps the virtual machine's memory for the specified domain to the
I<filename> specified, without pausing the domain. The dump file will
be written to a distribution specific directory for dump files. Such
-as: /var/lib/xen/dump or /var/xen/dump.
+as: /var/lib/xen/dump.
=item B<help> [I<--long>]
CONFIG_LEAF_DIR=$config_leaf_dir
AC_SUBST(CONFIG_LEAF_DIR)
+AC_ARG_WITH([xen-dumpdir],
+ AS_HELP_STRING([--with-xen-dumpdir=DIR],
+ [Path to directory for domU crash dumps. [LOCALSTATEDIR/lib/xen/dump]]),
+ [xen_dumpdir_path=$withval],
+ [xen_dumpdir_path=$localstatedir/lib/xen/dump])
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging
AC_SUBST(XEN_PAGING_DIR)
+
+XEN_DUMP_DIR=$xen_dumpdir_path
+AC_SUBST(XEN_DUMP_DIR)
])
.PHONY: install
install: subdirs-install
- $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
+ $(INSTALL_DIR) $(DESTDIR)$(XEN_DUMP_DIR)
$(INSTALL_DIR) $(DESTDIR)/var/log/xen
$(INSTALL_DIR) $(DESTDIR)/var/lib/xen
monitors
githttp
rpath
+XEN_DUMP_DIR
XEN_PAGING_DIR
XEN_LOCK_DIR
XEN_SCRIPT_DIR
enable_largefile
with_initddir
with_sysconfig_leaf_dir
+with_xen_dumpdir
enable_rpath
enable_githttp
enable_monitors
options for runlevel scripts and daemons such as
xenstored. This should be either "sysconfig" or
"default". [sysconfig]
+ --with-xen-dumpdir=DIR Path to directory for domU crash dumps.
+ [LOCALSTATEDIR/lib/xen/dump]
--with-linux-backend-modules="mod1 mod2"
List of Linux backend module or modalias names to be
autoloaded on startup.
CONFIG_LEAF_DIR=$config_leaf_dir
+
+# Check whether --with-xen-dumpdir was given.
+if test "${with_xen_dumpdir+set}" = set; then :
+ withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
+else
+ xen_dumpdir_path=$localstatedir/lib/xen/dump
+fi
+
+
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
case "$host_os" in
*netbsd*) ;;
XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging
+XEN_DUMP_DIR=$xen_dumpdir_path
+
+
# Enable/disable options
char *corefile;
int rc;
- if (asprintf(&corefile, "/var/xen/dump/%s", d_config->c_info.name) < 0) {
+ if (asprintf(&corefile, XEN_DUMP_DIR "/%s", d_config->c_info.name) < 0) {
LOG("failed to construct core dump path");
} else {
LOG("dumping core to %s", corefile);