Red Hat Bugzilla – Bug 1256966
Document the need to regenerate initrd in order to mask files under /usr
Last modified: 2015-09-11 02:43:27 EDT
I have been trying to disable/mask the file /usr/lib/sysctl.d/50-coredump.conf , shipped by systemd. To do that, I have created a file with the same name under /etc/sysctl.d, and symlinked it to /dev/null (as instructed on sysctl.d(5)). However, I see that /proc/sys/kernel/core_pattern still has the same value (even after a reboot).
I am not sure if this fails every file that you try to mask using this scheme, or if it's just for this coredump thing. Apparently this worked before.
I am running Fedora 22, x86_64
After you create the masked file, you also have to regenerate the initrd, otherwise only the default configuration (from /usr) stays there and the setting gets propagated to the root filesystem.
Thanks for the reply, Jan. However, I still consider there is room for improvement. I could not find this information anywhere (is it described on any manual/manpage?), and I do think it is necessary to explicitly mention this nontrivial step of having to regenerate initrd.
I am reopening this bug because of that; I am also changing the title to reflect the new task.
Merged upstream in https://github.com/systemd/systemd/pull/1118.
Fixed by https://bodhi.fedoraproject.org/updates/systemd-219-23.fc22