Add CONTAINER_NAME to BASE_IMAGE_COPY value

This commit is contained in:
Dean Troyer 2011-10-21 14:28:03 -05:00
parent 35a5349299
commit e4f030fef1

View file

@ -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