summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-05-28 15:29:17 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2019-06-05 15:01:20 +0200
commit249254d0100eb19a2be5929cc14ee9f64bf0dd7c (patch)
tree1b549011977622f2883bd13ac2c299f29609838c
parentecfd173e01f8a0a34d312ae635c9fee2b36a3629 (diff)
downloadmeta-updater-249254d0100eb19a2be5929cc14ee9f64bf0dd7c.tar.gz
sota.bbclass: Translate old prov recipe names into the new versions.refactor/thud/renaming-secondaries-etc
This should help ease the transition so that no one is surprised when their provisioning suddenly stops working. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
-rw-r--r--classes/sota.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index 26c1b85..bf27b6d 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -7,6 +7,20 @@ SOTA_CLIENT_PROV ??= "aktualizr-shared-prov"
7SOTA_DEPLOY_CREDENTIALS ?= "1" 7SOTA_DEPLOY_CREDENTIALS ?= "1"
8SOTA_HARDWARE_ID ??= "${MACHINE}" 8SOTA_HARDWARE_ID ??= "${MACHINE}"
9 9
10# Translate old provisioning recipe names into the new versions.
11python () {
12 prov = d.getVar("SOTA_CLIENT_PROV")
13 if prov == "aktualizr-auto-prov":
14 bb.warn('aktualizr-auto-prov is deprecated. Please use aktualizr-shared-prov instead.')
15 d.setVar("SOTA_CLIENT_PROV", "aktualizr-shared-prov")
16 elif prov == "aktualizr-ca-implicit-prov":
17 bb.warn('aktualizr-ca-implicit-prov is deprecated. Please use aktualizr-device-prov instead.')
18 d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov")
19 elif prov == "aktualizr-hsm-prov":
20 bb.warn('aktualizr-hsm-prov is deprecated. Please use aktualizr-device-prov-hsm instead.')
21 d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov-hsm")
22}
23
10IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" 24IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}"
11IMAGE_CLASSES += " image_types_ostree image_types_ota" 25IMAGE_CLASSES += " image_types_ostree image_types_ota"
12 26