From 03c152a5195fe52f3c99d31c1f3564122a62c34c Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 12 Mar 2014 19:28:46 -0700 Subject: [PATCH] hack(build_library): support amd64-usr Make special defaults for amd64-usr --- build_library/set_lsb_release | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build_library/set_lsb_release b/build_library/set_lsb_release index 9919ad2de6..b70952cd95 100755 --- a/build_library/set_lsb_release +++ b/build_library/set_lsb_release @@ -33,11 +33,18 @@ ROOT_FS_DIR="$FLAGS_root" COREOS_VERSION_NAME="CoreOS" if [[ -n "${FLAGS_production_track}" ]]; then + if [[ "${$FLAGS_board}" == "amd64-usr" ]]; then + FLAGS_production_track="alpha" + fi COREOS_VERSION_TRACK="${FLAGS_production_track}" COREOS_VERSION_DESCRIPTION="${COREOS_VERSION_STRING} (Official Build) \ ${COREOS_VERSION_TRACK} $FLAGS_board test" if [[ "${FLAGS_production_track}" != "sdk" ]]; then - COREOS_VERSION_AUSERVER="https://public.roller.core-os.net/v1/update/" + if [[ "${$FLAGS_board}" == "amd64-usr" ]]; then + COREOS_VERSION_AUSERVER="https://public.roller.core-os.net/v1/update/" + else + COREOS_VERSION_AUSERVER="https://api.core-os.net/v1/update/" + fi else COREOS_VERSION_AUSERVER="" fi @@ -51,6 +58,7 @@ else : ${COREOS_VERSION_DEVSERVER:="http://$(hostname --fqdn):8080"} fi + # TODO(marineam): come up with a way to support continous integration builds, # this would provide all the bells and whistles for 'master' branch images. #elif [ "$USER" = "chrome-bot" ]; then