ee9ad32b6f
Change-Id: Iad0261ac8db001ffa4d3a4dd6df05fe923402a69
25 lines
939 B
Bash
25 lines
939 B
Bash
export DISTRO_NAME=fedora
|
|
export DIB_RELEASE=${DIB_RELEASE:-31}
|
|
|
|
# Note the filename URL has a "sub-release" in it
|
|
# http:// ... Fedora-Cloud-Base-25-1.3.x86_64.qcow2
|
|
# ^^^
|
|
# It's not exactly clear how this is generated, or how we could
|
|
# determine this programatically. Other projects have more
|
|
# complicated regex-based scripts to find this, which we can examine
|
|
# if this becomes an issue ... see thread at [1]
|
|
#
|
|
# [1] https://lists.fedoraproject.org/archives/list/cloud@lists.fedoraproject.org/thread/2WFO2FKIGUQYRQXIR35UVJGRHF7LQENJ/
|
|
|
|
if [[ ${DIB_RELEASE} == '28' ]]; then
|
|
export DIB_FEDORA_SUBRELEASE=1.1
|
|
elif [[ ${DIB_RELEASE} == '29' ]]; then
|
|
export DIB_FEDORA_SUBRELEASE=1.2
|
|
elif [[ ${DIB_RELEASE} == '30' ]]; then
|
|
export DIB_FEDORA_SUBRELEASE=1.2
|
|
elif [[ ${DIB_RELEASE} == '31' ]]; then
|
|
export DIB_FEDORA_SUBRELEASE=1.9
|
|
else
|
|
echo "Unsupported Fedora release"
|
|
exit 1
|
|
fi
|