diff options
author | Patti Vacek <pattivacek@gmail.com> | 2021-01-29 16:08:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:08:11 +0100 |
commit | 0e753b01b1ceda9987610c2877f8e9543ec9ce5e (patch) | |
tree | 1f7e3ce5553222c79ec466b7b981977759991841 | |
parent | ddb1b5d135534c0cb333ea9a6e147bfceb46d2a8 (diff) | |
parent | d3a832f66e8802cb45536ff278d5c77f946d341d (diff) | |
download | meta-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.bbclass | 1 |
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 | ||
164 | IMAGE_TYPEDEP_ostreepush = "ostreecommit" | 164 | IMAGE_TYPEDEP_ostreepush = "ostreecommit" |
165 | do_image_ostreepush[depends] += "aktualizr-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot" | 165 | do_image_ostreepush[depends] += "aktualizr-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot" |
166 | do_image_ostreepush[lockfiles] += "${OSTREE_REPO}/ostree.lock" | ||
166 | IMAGE_CMD_ostreepush () { | 167 | IMAGE_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="" |