Bug 1256966 - Document the need to regenerate initrd in order to mask files under /usr
Summary: Document the need to regenerate initrd in order to mask files under /usr
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 22
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-25 22:20 UTC by Sergio Durigan Junior
Modified: 2015-09-11 06:43 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-11 06:43:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sergio Durigan Junior 2015-08-25 22:20:05 UTC
[ I am filing this bug here because I do not use github's proprietary javascript/backend, so I cannot file bugs against upstream systemd anymore. ]

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

kernel-3.19.8-100.fc20.x86_64
systemd-219-18.fc22.x86_64

Comment 1 Jan Synacek 2015-08-31 11:27:16 UTC
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.

Comment 2 Sergio Durigan Junior 2015-08-31 17:08:28 UTC
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.

Comment 3 Jan Synacek 2015-09-02 09:42:13 UTC
Merged upstream in https://github.com/systemd/systemd/pull/1118.

Comment 5 Jan Synacek 2015-09-11 06:43:27 UTC
Fixed by https://bodhi.fedoraproject.org/updates/systemd-219-23.fc22


Note You need to log in before you can comment on or make changes to this bug.