instack-prepare-for-overcloud should also download vmlinuz/initrd files if they exist
This commit is contained in:
parent
d2f95e980f
commit
b106b567b5
|
@ -25,6 +25,16 @@ function download_image {
|
||||||
if [ ! -f $image_name ]; then
|
if [ ! -f $image_name ]; then
|
||||||
curl -L -O $IMG_SOURCE_URL/$image_name
|
curl -L -O $IMG_SOURCE_URL/$image_name
|
||||||
fi
|
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 {
|
function load_image {
|
||||||
|
|
Loading…
Reference in New Issue