From d0552ebf2d401944d3e263000e23ca41a060d00c Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 6 Dec 2016 18:59:10 +0100 Subject: Fix macOS provisioning not shutting down cleanly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After provisioning we want the machine to be sensibly shut down since we will use the disk image later. VSphere doesn't manage to shut down 10.8 VMs. Help out by calling shutdown. For the other OS X/macOS versions, this is also desirable since controlling the power state of these machines is hard with different virtualization solutions (we're looking at OpenNebula/KVM). Change-Id: Ieabc14f9c8c1af9421a0ef91dd670f4790a84461 Reviewed-by: Simon Hausmann Reviewed-by: Jędrzej Nowacki --- coin/provisioning/qtci-osx-10.10-x86_64/999-shutdown.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 coin/provisioning/qtci-osx-10.10-x86_64/999-shutdown.sh (limited to 'coin/provisioning/qtci-osx-10.10-x86_64') diff --git a/coin/provisioning/qtci-osx-10.10-x86_64/999-shutdown.sh b/coin/provisioning/qtci-osx-10.10-x86_64/999-shutdown.sh new file mode 100644 index 00000000..1f17b545 --- /dev/null +++ b/coin/provisioning/qtci-osx-10.10-x86_64/999-shutdown.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Make sure to shut down the machine cleanly when provisioning is done. + +# +1 minute delay to make sure that the setup finishes +# and can clean up before being interrupted by the shutdown + +sudo shutdown -h +1 -- cgit v1.2.3