Bug#864341: systemd-sysctl: failed to apply sysctl config at bootup

Michael Biebl biebl at debian.org
Thu Jul 13 11:27:10 BST 2017


Am 13.07.2017 um 10:23 schrieb Arturo Borrero Gonzalez:
> On Wed, 7 Jun 2017 13:35:13 +0200 Moritz Muehlenhoff <jmm at debian.org> wrote:
> 
>> A couple of possible solutions, but these are all rather something for
>> upstream development:
>> - sysctl.conf files could gain an additional parameter which specifies
>>   the kernel module creating the sysctl. systemd-sysctl could then
>>   trigger the loading of that module and wait until the specified sysctl
>>   is present (I think that's the cleanest solution)

I think the proper solution is to find out why the /sys entries are not
available after the module has been loaded and fix that in the conntrack
module.


systemd-sysctl.service  already has a After=systemd-modules-load.service
ordering.

>> - All sysctl settings should be entirely idempotent. systemd-sysctl could
>>   be re-run in multi-user.target (fairly ugly)

That would still be racy, as the module that has been loaded has still
not created its sysfs entries.


>> - Or maybe split off a separate systemd-sysctl-stage2.service, which reads
>>   a separate sysctl config (which can then be used for driver which are loaded
>>   late)

Would still be racy, see above.

> 
> Hi,
> 
> I'm fine with any of them.
> It would be great if systemd maintainers could comment on the solutions.
> 

To me this smells like a kernel problem, specifically the conntrack
module and should be addressed there. But this would need input from a
kernel maintainer.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170713/03b5aaee/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list