On Wed, 2017-02-15 at 15:43 +0100, Dominig ar Foll (Intel Open Source) wrote:
Hello,

in AGL project we are facing an issue as when we create new images the UID,GID of given packages can (and does) change depending of the build.
This induces issues when we create partial update file using image diffs.

Could you let us know if we need to create our own solution, or if yocto already has a model to enforce a known UID-GID on packages coming from internal or external repo such as Open-Embedded  without patching (or creating a bbappend) for each imported package ?

You can use useradd-staticids, which will use a table of known uid/gid rather than using the next available id.

See the docs:
http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-classes-useradd

and the commit which introduced the feature:
http://git.yoctoproject.org/clean/cgit.cgi/poky/commit/meta/classes/useradd-staticids.bbclass?id=4bc6982ea60929226bcd9d206b4879dea2a3157c

Joshua