[systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

Kay Sievers kay at vrfy.org
Mon Dec 2 12:32:07 PST 2013


On Mon, Dec 2, 2013 at 9:15 PM, Goffredo Baroncelli <kreijack at libero.it> wrote:
> currently systemd contains a sysctl default setting in a file called
>         50-default.conf
> The aim of this patch is to split the content of the sysctl setting in
> more files to allow a more selective override.
>
> My need is to enable all the sysrq key. Instead systemd defaults is to
> disallow all sysrq keys except the sync one [1].
> To do that, I would have to override the sysctl file
>         /usr/lib/sysctl.d/50-default.conf file,
> putting a file with the same name in
>         /etc/sysctl.d
> However this file contains other settings than the one which I want to
> override; so I would lost any update of these other settings made by
> upstream.
>
> With this patch I am able to override only the setting related to the sysrq.

You should be able to overwrite individual settings just fine. I don't
think this is needed.

> create mode 100644 sysctl.d/50-default_kernel_sysrq.conf

We usually don't do "_" in file names. :)

Kay


More information about the systemd-devel mailing list