Merge pull request #102 from cloudbuilders/cache_images_kvm

Cache images kvm
This commit is contained in:
Jesse Andrews 2011-10-25 23:55:56 -07:00
commit c99d4ad156

View File

@ -284,6 +284,15 @@ if [ "$COPYENV" = "1" ]; then
cp_it ~/.bashrc $ROOTFS/$DEST/.bashrc
fi
# pre-cache uec images
for image_url in ${IMAGE_URLS//,/ }; do
IMAGE_FNAME=`basename "$image_url"`
if [ ! -f $IMAGES_DIR/$IMAGE_FNAME ]; then
wget -c $image_url -O $IMAGES_DIR/$IMAGE_FNAME
fi
cp $IMAGES_DIR/$IMAGE_FNAME $ROOTFS/$DEST/devstack/files
done
# Configure the runner
RUN_SH=$ROOTFS/$DEST/run.sh
cat > $RUN_SH <<EOF