From 2a324dd2ec51be4485eafe10a31c75bcc238144d Mon Sep 17 00:00:00 2001 From: Mate Lakat Date: Wed, 15 Oct 2014 17:40:41 +0200 Subject: [PATCH] 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 --- tools/xen/install_os_domU.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/xen/install_os_domU.sh b/tools/xen/install_os_domU.sh index 75d56a8465..439db68120 100755 --- a/tools/xen/install_os_domU.sh +++ b/tools/xen/install_os_domU.sh @@ -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 #