[oe-commits] [openembedded-core] 01/40: useradd: do not delete users and groups during configure

git at git.openembedded.org git at git.openembedded.org
Tue Sep 13 14:19:52 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 936150306cb13022edcadf862947c357932e80ee
Author: Joe Slater <jslater at windriver.com>
AuthorDate: Tue Aug 16 11:16:20 2016 -0700

    useradd: do not delete users and groups during configure
    
    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 at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/useradd.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index e24b1c5..bf62ada 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -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}"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list