XenAPI: Add exit point after JEOS installation

If the user only want to run the installation of Ubuntu - to export the
template as an xva, it just needs to specify a non-empty value for:

EXIT_AFTER_JEOS_INSTALLATION

And the script will exit after the jeos template has been created.

Change-Id: I558e2f2b18ee23c15c7e46e2f7e74543cf26b750
This commit is contained in:
Mate Lakat 2014-10-15 17:40:41 +02:00
parent e0d6a46b8a
commit 2a324dd2ec
1 changed files with 5 additions and 0 deletions

View File

@ -244,6 +244,11 @@ else
vm_uuid=$(xe vm-install template="$TNAME" new-name-label="$GUEST_NAME")
fi
if [ -n "${EXIT_AFTER_JEOS_INSTALLATION:-}" ]; then
echo "User requested to quit after JEOS instalation"
exit 0
fi
#
# Prepare VM for DevStack
#