sysinit: Accept also old xenbus kernel interface

qubes-sysinit.sh waits for xenbus initialization by watching its
interface file presence. In linux before 3.10 there is no
/dev/xen/xenbus, which is the case in Debian 7 (3.2 kernel). The problem
applies only to the VMs with PVGrub enabled, because otherwise VM would
use dom0 privided kernel, which is much newer.

Fixes QubesOS/qubes-issues#1609
This commit is contained in:
Marek Marczykowski-Górecki 2016-01-13 05:05:00 +01:00
parent 5570c899b8
commit fb470fe86f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -23,8 +23,8 @@ if ! dmesg | grep -q "$systemd_pkg_version running in system mode."; then
systemctl daemon-reexec systemctl daemon-reexec
fi fi
# Wait for evtchn initialization # Wait for xenbus initialization
while [ ! -e /dev/xen/xenbus ]; do while [ ! -e /dev/xen/xenbus -a ! -e /proc/xen/xenbus ]; do
sleep 0.1 sleep 0.1
done done