summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-01-08 10:04:12 +0100
committerGitHub <noreply@github.com>2019-01-08 10:04:12 +0100
commit9a5cdcb2dfdedbf92562938d6c03f08a036cf274 (patch)
treed1e097e2c0969cef7882c2ec02a5c000cd0ddfac
parent8fc8152334a167e9fd4f84dd76c8abf2470eb0a0 (diff)
parent03ed45db93f511ee5fbc766436d5330ca33bf278 (diff)
downloadmeta-updater-9a5cdcb2dfdedbf92562938d6c03f08a036cf274.tar.gz
Merge pull request #451 from advancedtelematic/fix/OTA-1866/simultaneous-garage-sign
image_garagesign: Use a lock to fix concurrency problems.
-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 0820af7..5cb4d51 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -169,6 +169,9 @@ IMAGE_CMD_ostreepush () {
169 169
170IMAGE_TYPEDEP_garagesign = "ostreepush" 170IMAGE_TYPEDEP_garagesign = "ostreepush"
171do_image_garagesign[depends] += "unzip-native:do_populate_sysroot" 171do_image_garagesign[depends] += "unzip-native:do_populate_sysroot"
172# This lock solves OTA-1866, which is that removing GARAGE_SIGN_REPO while using
173# garage-sign simultaneously for two images often causes problems.
174do_image_garagesign[lockfiles] += "${DEPLOY_DIR_IMAGE}/garagesign.lock"
172IMAGE_CMD_garagesign () { 175IMAGE_CMD_garagesign () {
173 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then 176 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
174 # if credentials are issued by a server that doesn't support offline signing, exit silently 177 # if credentials are issued by a server that doesn't support offline signing, exit silently