diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-07-25 21:15:25 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-07-25 21:15:25 +0800 |
commit | 1546eb85387f5df2c35d68192978f941e8a5896c (patch) | |
tree | 40827ac581e2634f6fb49f2f677b4ac4b3dbcfd5 | |
parent | 77640af54c071072ff4c8b53d68afba97ea2b1d4 (diff) | |
download | meta-secure-core-1546eb85387f5df2c35d68192978f941e8a5896c.tar.gz |
user-key-store.bbclass: don't run check_deploy_keys in parallel
Set lockfile for task check_deploy_keys() to avoid the race error from
'cp -af':
cp: cannot create regular file '.../tmp/deploy/images/intel-x86-64/
sample-keys/uefi_sb_keys/DBX/DBX.key': File exists
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r-- | meta-signing-key/classes/user-key-store.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-signing-key/classes/user-key-store.bbclass b/meta-signing-key/classes/user-key-store.bbclass index bcf247e..feabd9a 100644 --- a/meta-signing-key/classes/user-key-store.bbclass +++ b/meta-signing-key/classes/user-key-store.bbclass | |||
@@ -374,3 +374,5 @@ python check_deploy_keys() { | |||
374 | 374 | ||
375 | deploy_keys(_, d) | 375 | deploy_keys(_, d) |
376 | } | 376 | } |
377 | |||
378 | check_deploy_keys[lockfiles] = "${TMPDIR}/check_deploy_keys.lock" | ||