]> xenbits.xensource.com Git - xen.git/commitdiff
tools/hotplug: use XEN_LOCK_DIR instead of hardcoded path
authorOlaf Hering <olaf@aepfle.de>
Mon, 22 Sep 2014 12:59:58 +0000 (14:59 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Sep 2014 09:14:16 +0000 (10:14 +0100)
Use XEN_LOCK_DIR because it is a compiletime setting.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/xendomains

index 0794bb973b7249b744053f73834e7ec67860c5fe..c45f13277d797be239d038cafb11484a603e1e6c 100644 (file)
@@ -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