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:
and the commit which introduced the feature:
Joshua