[OE-core] [PATCH v2 0/2] Create systemd users at build time
Stephano Cetola
stephano.cetola at linux.intel.com
Wed May 11 19:04:39 UTC 2016
On 05/11, Puustinen, Ismo wrote:
> On Mon, 2016-05-09 at 16:42 -0700, Stephano Cetola wrote:
> > Systemd has a config option sysusers which creates any users or
> > groups that
> > systemd needs on first boot. There is a rootfs-postcommand that
> > creates these
> > users in case the filesystem is readonly, however it does not take
> > into
> > account any staicids that the user may have set.
> >
> > By adding these users at build time, we allow a check for staticids,
> > which would
> > otherwise have been skipped.
>
> I think this is a valuable feature. However, have you considered adding
> the "m" and "r" options too? I think that at least "m" would be
> worthwhile to implement, since it's important to be able to add users
> to different groups for privilege management.
>
> Ismo
I added "--system" to both useradd and groupadd, and I believe that is
the same as "-r". Please correct me if I am wrong there.
I do not see how the "-m" option would help with groups. I thought that
simply added a skeleton home directory. Could you give me an example?
Stephano
More information about the Openembedded-core
mailing list