From 91c7c986841eb7864157c849bc47c91fd1aacf2f Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Thu, 10 Aug 2017 16:00:24 +0200 Subject: Delete treehub.json from the credentials package on the device --- classes/image_types_ostree.bbclass | 3 +++ 1 file changed, 3 insertions(+) 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 IMAGE_DEPENDS_ostree = "ostree-native:do_populate_sysroot \ openssl-native:do_populate_sysroot \ + zip-native:do_populate_sysroot \ virtual/kernel:do_deploy \ ${OSTREE_INITRAMFS_IMAGE}:do_image_complete" @@ -133,6 +134,8 @@ IMAGE_CMD_ostree () { # deploy SOTA credentials if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then cp ${SOTA_PACKED_CREDENTIALS} var/sota/sota_provisioning_credentials.zip + # Device should not be able to push data to treehub + zip -d var/sota/sota_provisioning_credentials.zip treehub.json fi if [ -n "${SOTA_SECONDARY_ECUS}" ]; then -- cgit v1.2.3-54-g00ecf