From: Cedric Hombourger <Cedric_Hombourger@mentor.com>
To: <isar-users@googlegroups.com>
Cc: Cedric Hombourger <Cedric_Hombourger@mentor.com>
Subject: [PATCH] image: acquire lock when running do_cache_base_repo()
Date: Thu, 7 Feb 2019 18:10:56 +0100 [thread overview]
Message-ID: <1549559456-916-1-git-send-email-Cedric_Hombourger@mentor.com> (raw)
The base repository gets updated as images are built. As multiple
images may be built concurrently, accesses to the base cache repo
should be serialized by having do_cache_base_repo acquire the
following lock file: ${REPO_BASE_DIR}/isar.lock
Fixes: https://groups.google.com/forum/#!topic/isar-users/ElRP1h_9m9I
Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
---
meta/classes/image.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index d8fbfd5..be00817 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -128,6 +128,7 @@ addtask populate_sdk after do_rootfs
inherit base-apt-helper
do_cache_base_repo[depends] = "base-apt:do_cache_config"
+do_cache_base_repo[lockfiles] = "${REPO_BASE_DIR}/isar.lock"
do_cache_base_repo[stamp-extra-info] = "${MACHINE}-${DISTRO}"
do_cache_base_repo() {
--
2.11.0
next reply other threads:[~2019-02-07 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 17:10 Cedric Hombourger [this message]
2019-02-08 7:47 ` Maxim Yu. Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1549559456-916-1-git-send-email-Cedric_Hombourger@mentor.com \
--to=cedric_hombourger@mentor.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox