* [PATCH] image: acquire lock when running do_cache_base_repo()
@ 2019-02-07 17:10 Cedric Hombourger
2019-02-08 7:47 ` Maxim Yu. Osipov
0 siblings, 1 reply; 2+ messages in thread
From: Cedric Hombourger @ 2019-02-07 17:10 UTC (permalink / raw)
To: isar-users; +Cc: Cedric Hombourger
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] image: acquire lock when running do_cache_base_repo()
2019-02-07 17:10 [PATCH] image: acquire lock when running do_cache_base_repo() Cedric Hombourger
@ 2019-02-08 7:47 ` Maxim Yu. Osipov
0 siblings, 0 replies; 2+ messages in thread
From: Maxim Yu. Osipov @ 2019-02-08 7:47 UTC (permalink / raw)
To: Cedric Hombourger, isar-users
On 2/7/19 6:10 PM, Cedric Hombourger wrote:
> 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
Applied to the 'next',
Thanks,
Maxim.
> 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() {
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-08 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 17:10 [PATCH] image: acquire lock when running do_cache_base_repo() Cedric Hombourger
2019-02-08 7:47 ` Maxim Yu. Osipov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox