]> code.ossystems Code Review - openembedded-core.git/commit
useradd.bbclass: remove user/group created by the package in clean* task
authorMaxin B. John <maxin.john@intel.com>
Wed, 6 Apr 2016 09:20:31 +0000 (12:20 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 09:29:57 +0000 (10:29 +0100)
commitb5304ce438666a7418746f4ddd32703ae3188089
tree29517a7f0ab9b8a54ef1a3273124ddcd281cefcd
parent03d1711350895e941a476bd2d2a6cd389be07509
useradd.bbclass: remove user/group created by the package in clean* task

At present, if a recipe is built which creates users/groups via
useradd.bbclass, those users/groups are not removed from sysroot
when the recipe/package is cleaned using clean/cleansstate/cleanall
or when a recipe is rebuild and 'unstaged' from the the sysroot.

The "userdel_sysroot_sstate()" provides that functionality.

[YOCTO #9262]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass
meta/classes/useradd.bbclass