diff --git a/imagebuild/coreos/coreos-oem-inject.py b/imagebuild/coreos/coreos-oem-inject.py index 5920bd912..62020b370 100755 --- a/imagebuild/coreos/coreos-oem-inject.py +++ b/imagebuild/coreos/coreos-oem-inject.py @@ -21,10 +21,23 @@ import time import requests -COREOS_VERSION = "367.1.0" + +def get_latest_coreos_version(): + r = requests.get(COREOS_STABLE_URL) + for line in r.text.split('\n'): + if '=' in line: + k, v = line.split('=') + if k == 'COREOS_VERSION_ID': + return v + raise ValueError('Could not fetch latest CoreOS stable version') + + +COREOS_STABLE_URL = ('http://stable.release.core-os.net/amd64-usr' + '/current/version.txt') +COREOS_VERSION = get_latest_coreos_version() COREOS_ARCH = "amd64-usr" -COREOS_BASE_URL = ("http://storage.core-os.net/coreos/{arch}/{ver}" +COREOS_BASE_URL = ("http://stable.release.core-os.net/{arch}/{ver}" .format(arch=COREOS_ARCH, ver=COREOS_VERSION)) COREOS_PXE_DIGESTS = "coreos_production_pxe_image.cpio.gz.DIGESTS.asc" COREOS_PXE_KERNEL = "coreos_production_pxe.vmlinuz" @@ -282,8 +295,41 @@ XUhbqhm9xWV8NdmItO3BBSlIEksFunykzz1HM6shvzw77sM5+TEtSsxoOxxys+9N ItCl8L6yf84A5333pLaUWh5HON1J+jGGbKnUzXKBsDxGSvgDcFlyVloBRQShUkv3 FMem+FWqt7aA3/YFCPgyLp7818VhfM70bqIxLi0/BJHp6ltGN5EH+q7Ewz210VAB ju5IO7bjgCqTFeR3YYUN87l8ofdARx3shApXS6TkVcwaTv5eqzdFO9fZeRqHj4L9 -Pg== -=LY4G +PrkCDQRV5KHhARAAz9Qk17qaFi2iOlRgA4WXhn5zkr9ed1F1HGIJmFB4J8NIVkTZ +dt2UfRBWw0ykOB8m1sWLEfimP2FN5urnfsndtc1wEVrcuc7YAMbfUgxbTc/o+gTy +dpVCKmGrL10mZeOmioFQuVT9s1qzIII/gDbiSLRVDb75F6/aag7mDsJFGtUqStpN +mR0AHyrLOY/jYVLlTr8dAfX2Z2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