diff options
-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 d13533a..82278b2 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
@@ -12,6 +12,20 @@ SOTA_CLIENT_PROV ??= "aktualizr-shared-prov" | |||
12 | SOTA_DEPLOY_CREDENTIALS ?= "1" | 12 | SOTA_DEPLOY_CREDENTIALS ?= "1" |
13 | SOTA_HARDWARE_ID ??= "${MACHINE}" | 13 | SOTA_HARDWARE_ID ??= "${MACHINE}" |
14 | 14 | ||
15 | # Translate old provisioning recipe names into the new versions. | ||
16 | python () { | ||
17 | prov = d.getVar("SOTA_CLIENT_PROV") | ||
18 | if prov == "aktualizr-auto-prov": | ||
19 | bb.warn('aktualizr-auto-prov is deprecated. Please use aktualizr-shared-prov instead.') | ||
20 | d.setVar("SOTA_CLIENT_PROV", "aktualizr-shared-prov") | ||
21 | elif prov == "aktualizr-ca-implicit-prov": | ||
22 | bb.warn('aktualizr-ca-implicit-prov is deprecated. Please use aktualizr-device-prov instead.') | ||
23 | d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov") | ||
24 | elif prov == "aktualizr-hsm-prov": | ||
25 | bb.warn('aktualizr-hsm-prov is deprecated. Please use aktualizr-device-prov-hsm instead.') | ||
26 | d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov-hsm") | ||
27 | } | ||
28 | |||
15 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" | 29 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" |
16 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 30 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
17 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}" | 31 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}" |