summaryrefslogtreecommitdiffstats
path: root/xci/scripts
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-16 12:46:41 +0000
committerFatih Degirmenci <fdegir@gmail.com>2018-03-17 08:23:52 +0000
commit6c9da781da57420edf4f2a4f823c9d413ea1f516 (patch)
treeffec37b9509ea429bd21c29f96d41f60fc30028f /xci/scripts
parentcf894cbcffe0e1b2b28f6743e41407522cf20a63 (diff)
xci: scripts: start-new-vm.sh: Ensure we enter the correct root directory
All clean VM operations should be performed within the root directory of the releng-xci repo so make sure we are there. Change-Id: I96f9d91439210faa1ac7f0e43db3992776293e9e Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/scripts')
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index 262f1bc4..bb2b3351 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -188,6 +188,8 @@ sudo chown $uid:$gid -R $XCI_CACHE_DIR/clean_vm/images/
cp ${XCI_CACHE_DIR}/clean_vm/images/${OS}.qcow2* ${BASE_PATH}/
cp ${XCI_CACHE_DIR}/clean_vm/images/${OS}.qcow2.sha256.txt ${BASE_PATH}/deployment_image.qcow2.sha256.txt
cp ${XCI_CACHE_DIR}/clean_vm/images/${OS}.qcow2 ${BASE_PATH}/deployment_image.qcow2
+
+cd ${BASE_PATH}
declare -r OS_IMAGE_FILE=${OS}.qcow2
[[ ! -e ${OS_IMAGE_FILE} ]] && echo "${OS_IMAGE_FILE} not found! This should never happen!" && exit 1