[OE-core] [PATCH] systemd: create wheel sysuser group offline

Patrick Ohly patrick.ohly at intel.com
Mon Nov 13 20:26:29 UTC 2017


On Mon, 2017-11-13 at 12:18 -0800, Andre McCurdy wrote:
> On Mon, Nov 13, 2017 at 6:48 AM, Patrick Ohly <patrick.ohly at intel.com
> > wrote:
> > On Thu, 2017-11-09 at 21:54 -0800, Andre McCurdy wrote:
> > > The default systemd-tmpfiles config file expects to be able to
> > > create
> > > files etc belonging to the wheel system group. Currently the
> > > wheel
> > > group is created at run time by systemd-sysusers, but that
> > > doesn't
> > > happen if systemd-sysusers is disabled (as it currently is by
> > > default
> > > when building with musl libc).
> > 
> > Isn't this something that the systemd_create_users rootfs
> > postprocess
> > command in rootfs-postcommands.bbclass already takes care of?
> 
> systemd_create_users() does a build time pass over the
> systemd-sysusers config files, but those files are not installed if
> systemd is configured without sysusers support.

I didn't know that this is optional. To me it sounds like an invalid
(or let's say, unexpected) configuration to install tmpfiles config
files but not the sysusers files, because as you said, the tmpfiles may
depend on the sysusers.

Anyway, I just wanted to know because I was wondering whether it is
really necessary to duplicate the user creation information in the
systemd recipe.

-- 
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.





More information about the Openembedded-core mailing list