summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-08-10 16:00:24 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2017-08-10 16:01:49 +0200
commit91c7c986841eb7864157c849bc47c91fd1aacf2f (patch)
tree6c7d466a14532e601e023e8eab7c0e3e01876e86 /classes
parentcae622f61dae32ba5d4e96678e173afbe3637f9f (diff)
downloadmeta-updater-91c7c986841eb7864157c849bc47c91fd1aacf2f.tar.gz
Delete treehub.json from the credentials package on the device
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index d01cb9f..6a1b33e 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -4,6 +4,7 @@ inherit image
4 4
5IMAGE_DEPENDS_ostree = "ostree-native:do_populate_sysroot \ 5IMAGE_DEPENDS_ostree = "ostree-native:do_populate_sysroot \
6 openssl-native:do_populate_sysroot \ 6 openssl-native:do_populate_sysroot \
7 zip-native:do_populate_sysroot \
7 virtual/kernel:do_deploy \ 8 virtual/kernel:do_deploy \
8 ${OSTREE_INITRAMFS_IMAGE}:do_image_complete" 9 ${OSTREE_INITRAMFS_IMAGE}:do_image_complete"
9 10
@@ -133,6 +134,8 @@ IMAGE_CMD_ostree () {
133 # deploy SOTA credentials 134 # deploy SOTA credentials
134 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then 135 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
135 cp ${SOTA_PACKED_CREDENTIALS} var/sota/sota_provisioning_credentials.zip 136 cp ${SOTA_PACKED_CREDENTIALS} var/sota/sota_provisioning_credentials.zip
137 # Device should not be able to push data to treehub
138 zip -d var/sota/sota_provisioning_credentials.zip treehub.json
136 fi 139 fi
137 140
138 if [ -n "${SOTA_SECONDARY_ECUS}" ]; then 141 if [ -n "${SOTA_SECONDARY_ECUS}" ]; then