It was <2014-12-12 pią 10:09>, when José Bollo wrote:
[...]
> I know from Kevin and Ronan that you are facing issues about user
> creation in yocto but dont understand much what it is exactly. More
> explaination would help.
>
> I put at the end of this mail the result of the commands "rpm -ql gumd"
> and "rpm -ql pwdutils" that are showing the content of the to projects.
>
> From my (not very clear) understanding, in tizen/common/obs the project
> platform/upstream/setup is included but not in tizen-yocto project.
> Well, why not.
>
> So here actors are:
>  - pwdutils
>  - gumd
>  - setup
>
> And knocking at the door the "giant" novelty of systemd-sysuser that I
> heard about 3 days ago.
>
> IMHO, the guidelines should be:
>  - as least as possible definitions in setup

Yes.

>  - use useradd and other pwdutils programs

No.

>  - making gumd supply a replacement for pwdutils feature

Yes but do not use them for creating users in %post unless it can read
files from sysusers.d[1].

>  - not use systemd-sysuser (just for blowing on embers and opening the
> debate ^_^)

You got me here (-:

systemd-sysusers' greate advantage is that the information about users a
package requires are stored in a *declarative* manner in one (or more)
files belonging to the package and not only as parameters to useradd in
the %post script. That means that whenever you want to (re?)create the
users (factory reset) you can do it easily because:

- you don't need to run the entire %post script which may try to do
  other things

- you don't have to grep/sed/awk them out from the script.

- you've got the tool that iterates over all the drop-in files.


[1] http://www.freedesktop.org/software/systemd/man/sysusers.d.html

-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics

Attachment: pgphpZGaaZGic.pgp
Description: PGP signature

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to