From 814b3ecdbaf3c705653fe4a7bebf16ee49142947 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 21 Aug 2009 12:33:57 +0000 Subject: [PATCH] add check for another running xen instance just before xm create --- build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build b/build index 648a03e..d40ae54 100755 --- a/build +++ b/build @@ -1109,6 +1109,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do fi echo "booting XEN kernel ..." + if xm list "build:$XENID" >/dev/null 2>&1 ; then + echo "Instance does already exist, something really went wrong..." + cleanup_and_exit 1 + fi set -- xm create -c $BUILD_DIR/xen.conf name="build:$XENID" ${MEMSIZE:+memory=$MEMSIZE} $XMROOT $XMSWAP extra="quiet init="$CROSS_INIT_SCRIPT" panic=1 console=ttyS0" if test "$PERSONALITY" != 0 ; then # have to switch back to PER_LINUX to make xm work -- 2.7.4