[OE-core] recipes that inherit useradd delete users in do_configure

Khem Raj raj.khem at gmail.com
Tue Jul 12 01:55:54 UTC 2016


On Mon, Jul 11, 2016 at 6:50 PM, Slater, Joseph
<joe.slater at windriver.com> wrote:
> This might or might not be a bug, but it does lead to unpleasant behavior if
> two recipes create the same user.  They probably should not, but who's
> stopping them?
>
>
>
> I realize they are not in oe-core, but proftpd and vsftpd are an example of
> this.  We have seen failures when building world because proftpd creates
> "ftp",
>
> then vsftpd deletes it, then proftpd tries to chown a directory to the
> now-gone "ftp".
>
>
>
> Is this a recipe by recipe issue, or should something be changed in the
> behavior of useradd.bbclass?

I think we do the user creation during sysroot phase, so may be it can keep
an account of user creation/deletion, and emit a diagnostic about it.
in the end there always will be packages who step over each other, we need
to catch it at right spot.

>
>
>
> Joe
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



More information about the Openembedded-core mailing list