diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-05-28 15:29:17 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-06-05 15:01:20 +0200 |
commit | 249254d0100eb19a2be5929cc14ee9f64bf0dd7c (patch) | |
tree | 1b549011977622f2883bd13ac2c299f29609838c | |
parent | ecfd173e01f8a0a34d312ae635c9fee2b36a3629 (diff) | |
download | meta-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.bbclass | 14 |
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" | |||
7 | SOTA_DEPLOY_CREDENTIALS ?= "1" | 7 | SOTA_DEPLOY_CREDENTIALS ?= "1" |
8 | SOTA_HARDWARE_ID ??= "${MACHINE}" | 8 | SOTA_HARDWARE_ID ??= "${MACHINE}" |
9 | 9 | ||
10 | # Translate old provisioning recipe names into the new versions. | ||
11 | python () { | ||
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 | |||
10 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" | 24 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" |
11 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 25 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
12 | 26 | ||