* Changing UID GID
@ 2017-02-15 14:43 Dominig ar Foll (Intel Open Source)
2017-02-15 14:55 ` Joshua Lock
2017-02-15 14:57 ` Patrick Ohly
0 siblings, 2 replies; 4+ messages in thread
From: Dominig ar Foll (Intel Open Source) @ 2017-02-15 14:43 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/html, Size: 965 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing UID GID
2017-02-15 14:43 Changing UID GID Dominig ar Foll (Intel Open Source)
@ 2017-02-15 14:55 ` Joshua Lock
2017-02-15 14:57 ` Patrick Ohly
1 sibling, 0 replies; 4+ messages in thread
From: Joshua Lock @ 2017-02-15 14:55 UTC (permalink / raw)
To: Dominig ar Foll (Intel Open Source), yocto
[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]
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/use
radd-staticids.bbclass?id=4bc6982ea60929226bcd9d206b4879dea2a3157c
Joshua
[-- Attachment #2: Type: text/html, Size: 1655 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing UID GID
2017-02-15 14:43 Changing UID GID Dominig ar Foll (Intel Open Source)
2017-02-15 14:55 ` Joshua Lock
@ 2017-02-15 14:57 ` Patrick Ohly
2017-02-17 9:58 ` Changing UID GID (thaks) Dominig ar Foll (Intel Open Source)
1 sibling, 1 reply; 4+ messages in thread
From: Patrick Ohly @ 2017-02-15 14:57 UTC (permalink / raw)
To: Dominig ar Foll (Intel Open Source); +Cc: yocto
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.
Is that for partial updates with OSTree or something else?
> 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 ?
There's useradd-staticids.bbclass in OE-core, see
https://github.com/ostroproject/ostro-os/blob/master/meta-ostro/conf/distro/ostro.conf#L179 for an example how that was used.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing UID GID (thaks)
2017-02-15 14:57 ` Patrick Ohly
@ 2017-02-17 9:58 ` Dominig ar Foll (Intel Open Source)
0 siblings, 0 replies; 4+ messages in thread
From: Dominig ar Foll (Intel Open Source) @ 2017-02-17 9:58 UTC (permalink / raw)
To: yocto
Le 15/02/2017 à 15:57, Patrick Ohly a écrit :
>
> Is that for partial updates with OSTree or something else?
Yes we use OSTree in AGL but the issue is very similar to the one faced
by Ostro.
Thanks to Joshua and Patrick for the pointers.
--
Dominig ar Foll
Senior Software Architect
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-17 9:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-15 14:43 Changing UID GID Dominig ar Foll (Intel Open Source)
2017-02-15 14:55 ` Joshua Lock
2017-02-15 14:57 ` Patrick Ohly
2017-02-17 9:58 ` Changing UID GID (thaks) Dominig ar Foll (Intel Open Source)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.