instack-prepare-for-overcloud should also download vmlinuz/initrd files if they exist

This commit is contained in:
James Slagle 2014-07-14 15:13:05 -04:00
parent d2f95e980f
commit b106b567b5
1 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,16 @@ function download_image {
if [ ! -f $image_name ]; then
curl -L -O $IMG_SOURCE_URL/$image_name
fi
# Allow the download to fail, in case initrd/vmlinuz is not available,
# will fall back to old behavior of extraction via
# disk-image-get-kernel
for f in vmlinuz initrd; do
local file_name=$(basename -s .qcow2 $image_name).$f
if [ ! -f $file_name ]; then
curl -L -O $IMG_SOURCE_URL/$file_name || true
fi
done
}
function load_image {