From e0660cfd69000c284381f9eaa7ca05f8a9c5b566 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 30 Jan 2012 14:22:58 +0100 Subject: [PATCH] vm/systemd: wait for evtchn initialization before first xenstore-read --- vm-systemd/qubes-sysinit.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vm-systemd/qubes-sysinit.sh b/vm-systemd/qubes-sysinit.sh index da13faf..dc93de5 100755 --- a/vm-systemd/qubes-sysinit.sh +++ b/vm-systemd/qubes-sysinit.sh @@ -13,6 +13,11 @@ read_service() { $XS_READ qubes-service/$1 2> /dev/null } +# Wait for evtchn initialization +while [ ! -e /proc/xen/xenbus ]; do + sleep 0.1 +done + mkdir -p /var/run/qubes mkdir -p /var/run/qubes-service mkdir -p /var/run/xen-hotplug