]> code.ossystems Code Review - openembedded-core.git/commitdiff
useradd: do not delete users and groups during configure
authorJoe Slater <jslater@windriver.com>
Tue, 16 Aug 2016 18:16:20 +0000 (11:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Sep 2016 14:17:32 +0000 (15:17 +0100)
If two recipes both create the same users and groups, the
second recipe can delete items created by the first causing
things like "chown" to fail for the first recipe.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/useradd.bbclass

index e24b1c5b64d0fee13d15c2390138f105dee90b79..bf62ada8b534492b39497e5f98a71a8ca958a913 100644 (file)
@@ -125,7 +125,7 @@ useradd_sysroot_sstate () {
 
 userdel_sysroot_sstate () {
 if test "x${STAGING_DIR_TARGET}" != "x"; then
-    if [ "${BB_CURRENTTASK}" = "configure" -o "${BB_CURRENTTASK}" = "clean" ]; then
+    if [ "${BB_CURRENTTASK}" = "clean" ]; then
         export PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${STAGING_DIR_TARGET}${localstatedir}/pseudo ${STAGING_DIR_NATIVE}${bindir_native}/pseudo"
         OPT="--root ${STAGING_DIR_TARGET}"