summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOYTIS <tossel@gmail.com>2017-08-11 09:51:42 +0200
committerGitHub <noreply@github.com>2017-08-11 09:51:42 +0200
commit8a0ef9f142555c553d714668c611eae3df9f7a89 (patch)
tree6c7d466a14532e601e023e8eab7c0e3e01876e86
parentcae622f61dae32ba5d4e96678e173afbe3637f9f (diff)
parent91c7c986841eb7864157c849bc47c91fd1aacf2f (diff)
downloadmeta-updater-8a0ef9f142555c553d714668c611eae3df9f7a89.tar.gz
Merge pull request #119 from advancedtelematic/bugfix/treehub.json
Delete treehub.json from the credentials package on the device
-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