labs: fix guest-additions download

If the VirtualBox guest-additions have to be downloaded from the
Internet (usually they are provided by VirtualBox or already on the
disk), osbash fails to find the ISO image immediately -- it needs to
be restarted for that.

With this patch, osbash will correctly detect a freshly downloaded ISO
image.

Change-Id: Id767525cb25a2953e32ca5cba95fedddcdab6a5e
Implements: blueprint openstack-training-labs
This commit is contained in:
Roger Luethi 2014-08-24 11:33:03 +02:00
parent da220b6ec2
commit 125e72e299

View File

@ -491,7 +491,7 @@ function _download_guestadd-iso {
local URL="http://download.virtualbox.org/virtualbox/$VER/VBoxGuestAdditions_$VER.iso"
download "$URL" "$ISO_DIR" $ISO
fi
GUESTADD_ISO="$ISO_DIR/$ISO"
echo "$ISO_DIR/$ISO"
}
function _get_guestadd-iso {
@ -517,7 +517,7 @@ function _get_guestadd-iso {
fi
echo >&2 "Looking on the Internet"
_download_guestadd-iso
ADD_ISO=$(_download_guestadd-iso)
if [ -f "$ADD_ISO" ]; then
echo "$ADD_ISO"
return 0