From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SsqDb-0001TE-4e for openembedded-core@lists.openembedded.org; Sun, 22 Jul 2012 09:04:43 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id q6M6rGiW011007 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sat, 21 Jul 2012 23:53:16 -0700 (PDT) Received: from pek-cc-pb05l.wrs.com (128.224.157.65) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Sat, 21 Jul 2012 23:53:15 -0700 From: To: Date: Sun, 22 Jul 2012 14:53:02 +0800 Message-ID: X-Mailer: git-send-email 1.7.4 MIME-Version: 1.0 Subject: [PATCH 0/1] useradd.bbclass: use locking of bb.utils to avoid lock race issue of useradd/groupadd X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2012 07:04:43 -0000 Content-Type: text/plain From: Jackie Huang A race condition can occur when adding users and groups to the passwd and group files, in [YOCTO #1794], 10 times retry added but it is not fixed completely. This fix re-writes the useradd_preinst and useradd_sysroot with python and use locking of bb.utils to lock the passwd and group files before executing useradd/groupadd commands to avoid the lock race themselves. [YOCTO #2779] Signed-off-by: Jackie Huang --- The following changes since commit 4bce3417917a3e88ba6529db394525fba82e0699: EFI: Make installer EFI aware (2012-07-19 17:48:53 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib jhuang0/yocto_2779_groupadd_0722 http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jhuang0/yocto_2779_groupadd_0722 Jackie Huang (1): useradd.bbclass: use locking of bb.utils to avoid lock race issue of useradd/groupadd meta/classes/useradd.bbclass | 284 ++++++++++++++++++------------------------ 1 files changed, 124 insertions(+), 160 deletions(-) -- 1.7.4