[systemd-devel] [PATCH] networkd: disable tmpfiles and sysusers bits associated with networkd

Łukasz Stelmach l.stelmach at samsung.com
Tue Dec 2 22:50:27 PST 2014


It was <2014-12-02 wto 10:31>, when Tom Gundersen wrote:
> On Tue, Dec 2, 2014 at 10:24 AM, Łukasz Stelmach <l.stelmach at samsung.com> wrote:
>> It was <2014-12-02 wto 00:35>, when Lennart Poettering wrote:
>>> On Mon, 24.11.14 09:30, Łukasz Stelmach (l.stelmach at samsung.com) wrote:
>>>> It was <2014-11-21 pią 21:36>, when Lennart Poettering wrote:
>>>> > On Fri, 21.11.14 17:07, Łukasz Stelmach (l.stelmach at samsung.com) wrote:
>>>> >> On a system configured without networkd and sysusers there still needs
>>>> >> to be the unnecessary systemd-network user, otherwise systemd-tmpfiles
>>>> >> fails to start.
>>>> >>
>>>> >> Move information associated with networkd in tmpfiles.d and sysusers.d
>>>> >> to separate files. Do not install it if netwrorkd is not enabled.
>>>> >
>>>> > In principle looks OK, but I'd prefer if we would write this out with
>>>> > m4 (see etc.conf.m4) and keep it in the current files, rather than
>>>> > split this up in numerous files.
>>>> >
>>>> > Especially in the case of /run/systemd/netif this actually matters: if
>>>> > we split that out into its own tmpfiles snippet, then packagers would
>>>> > most likely put that in its own RPM/DEB if they split out those
>>>> > daemons. But this is not advisable in this case
[...]
>>>>
>>>> Will it be necessary for this directory to be owned by systemd-network
>>>> even without networkd?
>>>
>>> Yes. If networkd is compile-time enable the dir should exist and be
>>> properly owned, even if it networkd is split off into a separate
>>> binary package and currently not installed.
>>
>> And what if the networkd is disabled? Does the directory must exist? Now
>> if networkd is disabled /run/systemd/netif* are not in
>> tmpfiles.d/systemd.conf. Is this correct?
>
> No, if you disable networkd at compile-time the directory is not
> needed (and using the sd-network library will rightly fail).
[...]
>
> My two cents.

That gives about three with Lennart's ;-) Thanks.

-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141203/0974b9a6/attachment.sig>


More information about the systemd-devel mailing list