[systemd-devel] Handling sysctl entries that depend on module presence?

Kay Sievers kay at vrfy.org
Mon Nov 19 16:33:27 PST 2012


On Tue, Nov 20, 2012 at 1:06 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Mon, 19.11.12 08:13, Mantas Mikulėnas (grawity at gmail.com) wrote:

>> This doesn't affect TCPCongestion= in systemd socket units, since root
>> is allowed to set any algorithm, and the module is simply loaded on
>> demand when systemd asks for it...
>>
>> How can this be fixed?
>
> Hmm, whenever a module is loaded this also generates udev events, maybe
> for this specific case we should add a udev rule that tries to write the
> sysctl again after the module was successfully loaded?

Sounds kinda scary, and is probably too simple. We always run coldplug
for all modules, at every bootup, and they will all run parallel,
doing all the same apply sysctl over and overfor all devices ...

Kay


More information about the systemd-devel mailing list