Browse code

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

Mate Lakat authored on 2014/10/16 00:40:41
Showing 1 changed files
... ...
@@ -244,6 +244,11 @@ else
244 244
     vm_uuid=$(xe vm-install template="$TNAME" new-name-label="$GUEST_NAME")
245 245
 fi
246 246
 
247
+if [ -n "${EXIT_AFTER_JEOS_INSTALLATION:-}" ]; then
248
+    echo "User requested to quit after JEOS instalation"
249
+    exit 0
250
+fi
251
+
247 252
 #
248 253
 # Prepare VM for DevStack
249 254
 #