From c996572d3b5d3b81e38592901b56abb991339fe9 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 22 Sep 2014 14:59:58 +0200 Subject: [PATCH] tools/hotplug: use XEN_LOCK_DIR instead of hardcoded path Use XEN_LOCK_DIR because it is a compiletime setting. Signed-off-by: Olaf Hering Acked-by: Ian Campbell --- tools/hotplug/Linux/xendomains | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/hotplug/Linux/xendomains b/tools/hotplug/Linux/xendomains index 0794bb973b..c45f13277d 100644 --- a/tools/hotplug/Linux/xendomains +++ b/tools/hotplug/Linux/xendomains @@ -49,12 +49,7 @@ if ! [ -e /proc/xen/privcmd ]; then exit 0 fi -# See docs/misc/distro_mapping.txt -if [ -d /var/lock/subsys ]; then - LOCKFILE=/var/lock/subsys/xendomains -else - LOCKFILE=/var/lock/xendomains -fi +LOCKFILE=${XEN_LOCK_DIR}/xendomains if [ -d /etc/sysconfig ]; then XENDOM_CONFIG=/etc/sysconfig/xendomains -- 2.30.2