From e4f030fef125578c447448735d0a2dd1d79ab4fb Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 21 Oct 2011 14:28:03 -0500 Subject: [PATCH] Add CONTAINER_NAME to BASE_IMAGE_COPY value --- tools/build_kvm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/build_kvm.sh b/tools/build_kvm.sh index 207f86b..7511898 100755 --- a/tools/build_kvm.sh +++ b/tools/build_kvm.sh @@ -45,14 +45,14 @@ source ./stackrc DIST_NAME=${DIST_NAME:-natty} IMAGE_FNAME=$DIST_NAME.raw +# Name of our instance, used by libvirt +CONTAINER_NAME=${CONTAINER_NAME:-kvmstack} + # Original version of built image BASE_IMAGE=$KVMSTACK_DIR/images/natty.raw # Copy of base image, which we pre-install with tasty treats -BASE_IMAGE_COPY=$IMAGES_DIR/$DIST_NAME.raw.copy - -# Name of our instance, used by libvirt -CONTAINER_NAME=${CONTAINER_NAME:-kvmstack} +BASE_IMAGE_COPY=$IMAGES_DIR/$DIST_NAME.$CONTAINER_NAME.raw.copy # Mop up after previous runs virsh destroy $CONTAINER_NAME