summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatti Vacek <pattivacek@gmail.com>2021-01-29 16:08:11 +0100
committerGitHub <noreply@github.com>2021-01-29 16:08:11 +0100
commit0e753b01b1ceda9987610c2877f8e9543ec9ce5e (patch)
tree1f7e3ce5553222c79ec466b7b981977759991841
parentddb1b5d135534c0cb333ea9a6e147bfceb46d2a8 (diff)
parentd3a832f66e8802cb45536ff278d5c77f946d341d (diff)
downloadmeta-updater-0e753b01b1ceda9987610c2877f8e9543ec9ce5e.tar.gz
Merge pull request #797 from liuming50/fix-race-problems-of-ostreecommit-ota-tasks
image_types_ota.bbclass: get lock before accessing OSTREE_REPO
-rw-r--r--classes/image_types_ostree.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index e66956a..4d9b0a9 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -163,6 +163,7 @@ IMAGE_CMD_ostreecommit () {
163 163
164IMAGE_TYPEDEP_ostreepush = "ostreecommit" 164IMAGE_TYPEDEP_ostreepush = "ostreecommit"
165do_image_ostreepush[depends] += "aktualizr-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot" 165do_image_ostreepush[depends] += "aktualizr-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot"
166do_image_ostreepush[lockfiles] += "${OSTREE_REPO}/ostree.lock"
166IMAGE_CMD_ostreepush () { 167IMAGE_CMD_ostreepush () {
167 # send a copy of the repo manifest to backend if available 168 # send a copy of the repo manifest to backend if available
168 local SEND_MANIFEST="" 169 local SEND_MANIFEST=""