From 7c48115da646b8c29920f12ee39d3b89397a8a09 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 31 Jul 2013 21:22:52 -0400 Subject: [PATCH] fix(image_to_vm): Use saved version info instead of parsing directory. Trying to include version info by adding the directory name to VM image names didn't work and a better solution is for build_image to write out a version.txt file. This should also fix an issue where uploading from image_to_vm.sh didn't always go to the same location as the images uploaded from build_image did. --- build_image | 15 +++++++++++++-- build_library/vm_image_util.sh | 9 +-------- image_to_vm.sh | 6 ++++++ 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/build_image b/build_image index 58f883a091..5a16c02295 100755 --- a/build_image +++ b/build_image @@ -198,7 +198,16 @@ fi # Generating AU generator zip file to run outside chroot generate_au_zip || echo "Failed generating AU zip file - ignoring Error..." -upload_image "${BUILD_DIR}/au-generator.zip" + +# Write out a version.txt file, this will be used by image_to_vm.sh +tee "${BUILD_DIR}/version.txt" <