Change release URLs to Flatcar's

This commit is contained in:
Iago López Galeiras 2018-03-19 15:33:36 +01:00
parent 2535fd4a72
commit 330cc93aa4
4 changed files with 9 additions and 9 deletions

View File

@ -52,15 +52,15 @@ WORKDIR="${DEST}/tmp.${RANDOM}"
mkdir "$WORKDIR"
trap "rm -rf '${WORKDIR}'" EXIT
RAW_IMAGE_NAME="coreos_production_image.bin"
RAW_IMAGE_NAME="flatcar_production_image.bin"
IMAGE_NAME="${RAW_IMAGE_NAME}.bz2"
DIGESTS_NAME="${IMAGE_NAME}.DIGESTS.asc"
case ${VERSION_ID} in
stable) BASE_URL="https://stable.release.core-os.net/amd64-usr/current" ;;
alpha) BASE_URL="https://alpha.release.core-os.net/amd64-usr/current" ;;
beta) BASE_URL="https://beta.release.core-os.net/amd64-usr/current" ;;
*) BASE_URL="https://alpha.release.core-os.net/amd64-usr/${VERSION_ID}" ;;
stable) BASE_URL="https://stable.release.flatcar-linux.net/amd64-usr/current" ;;
alpha) BASE_URL="https://alpha.release.flatcar-linux.net/amd64-usr/current" ;;
beta) BASE_URL="https://beta.release.flatcar-linux.net/amd64-usr/current" ;;
*) BASE_URL="https://alpha.release.flatcar-linux.net/amd64-usr/${VERSION_ID}" ;;
esac
IMAGE_URL="${BASE_URL}/${IMAGE_NAME}"

View File

@ -15,7 +15,7 @@ release=${1:-"alpha"}
# If the argument is in the form http* allow for watching an arbitrary location
if [[ $1 != http* ]]; then
url="https://${release}.release.core-os.net/amd64-usr/current/version.txt"
url="https://${release}.release.flatcar-linux.net/amd64-usr/current/version.txt"
else
url=$1
release=$(echo ${url} | sed -e 's/http:\/\///1' -e 's/\//-/g' )

View File

@ -21,7 +21,7 @@ while [[ $# -gt 0 ]]; do
# For this convoluded trick, we take an arbitrary URL, chop it
# up, and try to turn it into usable input for the rest of the
# script. This is based on urls of the form:
# https://storage.core-os.net/coreos/amd64-usr/master/version.txt
# https://storage.flatcar-linux.net/coreos/amd64-usr/master/version.txt
# where the following sed expression extracts the "master"
# portion
baseurl="${1%/*}"
@ -46,7 +46,7 @@ while [[ $# -gt 0 ]]; do
done
if [[ -z "${baseurl}" ]]; then
baseurl="https://${release}.release.core-os.net/${board}/current"
baseurl="https://${release}.release.flatcar-linux.net/${board}/current"
fi
version_url="${baseurl}/version.txt"

View File

@ -14,7 +14,7 @@ shape="VM.Standard1.1"
ipxe=0
ignition=
keyfile="$HOME/.ssh/id_rsa.pub"
baseurl="http://alpha.release.core-os.net/amd64-usr/current"
baseurl="http://alpha.release.flatcar-linux.net/amd64-usr/current"
bucket_base="users.developer.core-os.net/$USER/bmcs"
kargs=