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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 29, 2015 at 9:33 AM, Alchemist <raimiiic@xxxxxxxxx> wrote:
> 2015-05-29 16:23 GMT+03:00 Tom H <tomh0665@xxxxxxxxx>:
>> On Fri, May 29, 2015 at 8:45 AM, Tom Horsley <horsley1953@xxxxxxxxx>
>> 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?
>
> Don't use empty or nulled files. Sysctl variable names must be the same, to
> override variable=value stored in /usr/lib/sysctl.d/*.

I did say "try."

While it's true that you usually override a sysctl value with a
variable=value pair, symlinking a conf file in "/etc/sysctl.d/" to
"/dev/null" overrides a conf file with the same name in
"/usr/lib/sysctl.d/" (I've just tried it) in the same way that
symlinks to "/dev/null" in "/etc/systemd/system/",
"/etc/systemd/network/", and "/etc/udev/rues.d/" override same-named
files in their corresponding libdir.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux