sota.bbclass: Translate old prov recipe names into the new versions.
This should help ease the transition so that no one is surprised when
their provisioning suddenly stops working.
@@ -7,6 +7,20 @@ SOTA_CLIENT_PROV ??= "aktualizr-shared-prov"
SOTA_DEPLOY_CREDENTIALS ?= "1"
SOTA_HARDWARE_ID ??= "${MACHINE}"
+# Translate old provisioning recipe names into the new versions.
+python () {
+ prov = d.getVar("SOTA_CLIENT_PROV")
+ if prov == "aktualizr-auto-prov":
+ bb.warn('aktualizr-auto-prov is deprecated. Please use aktualizr-shared-prov instead.')
+ d.setVar("SOTA_CLIENT_PROV", "aktualizr-shared-prov")
+ elif prov == "aktualizr-ca-implicit-prov":
+ bb.warn('aktualizr-ca-implicit-prov is deprecated. Please use aktualizr-device-prov instead.')
+ d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov")
+ elif prov == "aktualizr-hsm-prov":
+ bb.warn('aktualizr-hsm-prov is deprecated. Please use aktualizr-device-prov-hsm instead.')
+ d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov-hsm")
+}
+
IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}"
IMAGE_CLASSES += " image_types_ostree image_types_ota"
