xen: only start xend in dom0 kernels.
--HG-- extra : convert_revision : 7a32ad68f42a0734920f3facabd845938e2a85ab
This commit is contained in:
parent
9a763e1982
commit
9c7a8e7209
1 changed files with 13 additions and 9 deletions
|
@ -12,18 +12,22 @@ depend()
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
modprobe -q xen-evtchn || eend $? "Failed to load xen-evtchn module!"
|
if test -d /proc/xen; then
|
||||||
|
modprobe -q xen-evtchn || eend $? "Failed to load xen-evtchn module!"
|
||||||
|
|
||||||
if test -d /proc/xen && ! test -d /proc/xen/capabilities && \
|
if ! test -d /proc/xen/capabilities && \
|
||||||
! grep ' xenfs$' /proc/filesystems >/dev/null && \
|
! grep ' xenfs$' /proc/filesystems >/dev/null && \
|
||||||
! grep '^xenfs ' /proc/mounts >/dev/null; then
|
! grep '^xenfs ' /proc/mounts >/dev/null; then
|
||||||
ebegin "Mounting xenfs for xend"
|
ebegin "Mounting xenfs for xend"
|
||||||
mount -t xenfs xenfs /proc/xen
|
mount -t xenfs xenfs /proc/xen
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
ebegin "Starting xend"
|
||||||
|
${command} start
|
||||||
eend $?
|
eend $?
|
||||||
|
else
|
||||||
|
eerror "xend needs dom0 support, aborting"
|
||||||
fi
|
fi
|
||||||
ebegin "Starting xend"
|
|
||||||
${command} start
|
|
||||||
eend $?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
|
|
Loading…
Reference in a new issue