From: Olaf Hering Date: Mon, 22 Sep 2014 12:59:56 +0000 (+0200) Subject: tools/hotplug: create XEN_RUN_DIR at runtime X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4371 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a5e21ac38c2e4631c0071028ec11898eb2825e1;p=xen.git tools/hotplug: create XEN_RUN_DIR at runtime Create XEN_RUN_DIR instead of hardcoded path because it is a compiletime setting. Also /var/run might be empty on startup because it is a tmpfs mount point. Signed-off-by: Olaf Hering Acked-by: Ian Campbell --- diff --git a/tools/hotplug/Linux/init.d/xencommons.in.in b/tools/hotplug/Linux/init.d/xencommons.in.in index 1d860d94e3..be21960236 100644 --- a/tools/hotplug/Linux/init.d/xencommons.in.in +++ b/tools/hotplug/Linux/init.d/xencommons.in.in @@ -60,7 +60,7 @@ do_start () { local timeout=30 @LOAD_MODULES@ - mkdir -p /var/run/xen + mkdir -p ${XEN_RUN_DIR} if ! `${BINDIR}/xenstore-read -s / >/dev/null 2>&1` then