xci: scripts: start-new-vm.sh: Ensure we enter the correct root directory 89/53989/2
authorMarkos Chandras <mchandras@suse.de>
Fri, 16 Mar 2018 12:46:41 +0000 (12:46 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Sat, 17 Mar 2018 08:23:52 +0000 (08:23 +0000)
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>
xci/scripts/vm/start-new-vm.sh

index 262f1bc..bb2b335 100755 (executable)
@@ -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