[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 09/12] tools/hotplug: create XEN_RUN_DIR at runtime



Create XEN_RUN_DIR instead of hardcoded path at runtime.
/var/run might be empty on startup.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
 tools/hotplug/Linux/init.d/xencommons | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/init.d/xencommons 
b/tools/hotplug/Linux/init.d/xencommons
index c62bdb8..2326a9c 100644
--- a/tools/hotplug/Linux/init.d/xencommons
+++ b/tools/hotplug/Linux/init.d/xencommons
@@ -72,7 +72,7 @@ do_start () {
        modprobe pciback 2>/dev/null
        modprobe xen-acpi-processor 2>/dev/null
        modprobe blktap2 2>/dev/null || modprobe blktap 2>/dev/null
-       mkdir -p /var/run/xen
+       mkdir -p ${XEN_RUN_DIR}
 
        if ! `${BINDIR}/xenstore-read -s / >/dev/null 2>&1`
        then

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.