[PATCH] non-xen-init-exit.patch
Name: non-xen-init-exit.patch
Description: exit if not running on a xen dom0 kernel.
If /proc/xen/privcmd doesn't exist, then exit successfully. This allows
for dual-boot setups, and installing xen before rebooting into a real
xen kernel.
Signed-off-by: Adam Heath <doogie@brainfood.com>
cl349@labyrinth.cl.cam.ac.uk
cwc22@centipede.cl.cam.ac.uk
djm@kirby.fc.hp.com
+doogie@brainfood.com
gm281@boulderdash.cl.cam.ac.uk
gm281@tetrapod.cl.cam.ac.uk
iap10@freefall.cl.cam.ac.uk
# chkconfig: 2345 98 01
# description: Starts and stops the Xen control daemon.
+if ! [ -e /proc/xen/privcmd ]; then
+ exit 0
+fi
+
# Wait for Xend / Xfrd to be up
function await_daemons_up
{
# <http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/>
#
+if ! [ -e /proc/xen/privcmd ]; then
+ exit 0
+fi
+
RETVAL=0
INITD=/etc/init.d