Bug 9943

Summary: userdel_sysroot_sstate() deletes only first user/group
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joe Slater <joe.slater>
Component: deploymentAssignee: Mariano Lopez <mariano.lopez>
Status: VERIFIED FIXED QA Contact: David Rodriguez <david.israelx.rodriguez.castellanos>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, sgw
Version: unspecified   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Joe Slater 2016-07-14 20:28:45 UTC
Preconditions/Environment
-------------------------
Configure a project in which you can build systemd.

Triggering Action/Cause
-----------------------
bitbake systemd
bitbake systemd -c cleansstate

Expectation
-----------
The groups in tmp/sysroots/<target>/etc/groups created when systemd was built should be gone.

Actual Result
-------------
Some of them, like systemd-journal, are still there.

Reproducibility
---------------
1/1

Cause?
------
userdel_sysroot_sstate() does not loop.
Comment 1 Mariano Lopez 2016-07-25 21:40:01 UTC
Indeed, the problem is that userdel_sysroot_sstate() doesn't loop.

Sent patch to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124271.html
Comment 2 Mariano Lopez 2016-08-01 12:39:31 UTC
This bug has been solved with commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=be68ef5129b787978a0e540eb58427b32bd67ce3
Comment 3 David Rodriguez 2016-08-19 15:30:58 UTC
Verified on Master, Genericx86 and Genericx86-64.