As far as block-device layout is concerned ppc64le == ppc64el

Change-Id: I06a89f256f66eba2f73dd110f5d8a61e0f0a924c
This commit is contained in:
Tony Breeds 2017-06-26 13:13:25 +10:00
parent 7aa6a69983
commit c383428727

View File

@ -398,7 +398,14 @@ function block_device_create_config_file {
for i in ${!image_elements[@]}; do
local cfg
# look for arch specific version first, then default
if [[ "ppc64le ppc64el" =~ $ARCH ]] ; then
# NOTE(tonyb): ppc64el and ppc64le are the same archttechture, it's
# just different distro's have different names. So if we're either
# of them pick the block-device-ppc64el.yaml file
cfg=${image_elements[$i]}/block-device-ppc64el.yaml
else
cfg=${image_elements[$i]}/block-device-${ARCH}.yaml
fi
if [ -e ${cfg} ]; then
cp ${cfg} ${config_yaml}
echo "Using block-device config: ${cfg}"