]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
useradd_base.bbclass: replace retry logic with flock
authorKai Kang <kai.kang@windriver.com>
Mon, 29 Feb 2016 09:19:32 +0000 (17:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 23:12:27 +0000 (23:12 +0000)
commit57a525ca7271a8fe3913c61aa87cb0ba1674b4b2
tree3ce9a1cdea084f0f063310c3f2441d52c62e8bb3
parent5d06f00471f9db89ea63bae1bc900fcdea5c6bf3
useradd_base.bbclass: replace retry logic with flock

When perform useradd during populate sysroot, it locks files passwd.lock
and group.lock at same time. And then it meets a dead lock issue
randomly.

Use flock to reslove it by using an universal lock directory for all the
user and group related operations.

[YOCTO #9022]

(From OE-Core rev: 2ebf697b46c42cee8bfa6d2e6087397f8cce385c)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd.bbclass
meta/classes/useradd_base.bbclass