tools/hotplug: create XEN_LOCK_DIR at runtime
authorOlaf Hering <olaf@aepfle.de>
Mon, 22 Sep 2014 12:59:57 +0000 (14:59 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Sep 2014 09:14:16 +0000 (10:14 +0100)
Create XEN_LOCK_DIR because it is a compiletime setting. Also /var/lock
might be empty on startup because it is a tmpfs mount point.

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

index be21960236384be885270824b44585931f8345ce..a723eb4e927d315c30577ac772511e5ff20215c7 100644 (file)
@@ -61,6 +61,7 @@ do_start () {
 
        @LOAD_MODULES@
        mkdir -p ${XEN_RUN_DIR}
+       mkdir -p ${XEN_LOCK_DIR}
 
        if ! `${BINDIR}/xenstore-read -s / >/dev/null 2>&1`
        then