2014-05-01 16:24:37 +00:00
|
|
|
export DISTRO_NAME=fedora
|
2019-08-15 06:00:40 +00:00
|
|
|
export DIB_RELEASE=${DIB_RELEASE:-30}
|
2017-08-25 05:47:29 +00:00
|
|
|
|
|
|
|
# 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/
|
|
|
|
|
2018-11-16 03:50:08 +00:00
|
|
|
if [[ ${DIB_RELEASE} == '28' ]]; then
|
2018-05-04 14:58:00 +00:00
|
|
|
export DIB_FEDORA_SUBRELEASE=1.1
|
2018-11-16 03:50:08 +00:00
|
|
|
elif [[ ${DIB_RELEASE} == '29' ]]; then
|
|
|
|
export DIB_FEDORA_SUBRELEASE=1.2
|
2019-08-15 06:00:40 +00:00
|
|
|
elif [[ ${DIB_RELEASE} == '30' ]]; then
|
|
|
|
export DIB_FEDORA_SUBRELEASE=1.2
|
2017-08-25 05:47:29 +00:00
|
|
|
else
|
|
|
|
echo "Unsupported Fedora release"
|
|
|
|
exit 1
|
|
|
|
fi
|