How do I really prevent /usr/lib/sysctl.d/50-coredump.conf

Tom H tomh0665 at gmail.com
Fri May 29 13:23:08 UTC 2015


On Fri, May 29, 2015 at 8:45 AM, Tom Horsley <horsley1953 at gmail.com> wrote:
>
> In some message a while back the claim was made that
> creating a /etc/sysctl.d/50-coredump.conf that was
> empty would override the systemd installed
> /usr/lib/sysctl.d/50-coredump.conf, but I can
> state positively that doesn't work, the systemd
> setting is still in force.
>
> What does work is (as root):
>
> rm -f /usr/lib/sysctl.d/50-coredump.conf
>
> but that file will come back if there is a systemd
> update.
>
> So is there really a way to get the default
> kernel core file pattern to stick around even
> with systemd updates?

How about trying a symlink of "/etc/sysctl.d/50-coredump.conf" to
"/dev/null", systemctl-mask-style?


More information about the users mailing list