Bug 87294

Summary: systemctl daemon-reload sets kernel configs again
Product: systemd Reporter: Umut Tezduyar <umut>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Umut Tezduyar 2014-12-13 21:13:14 UTC
We are (as a distro) overriding a single sys config value by a file within /usr/lib/. Systemd is being nice and informing us about the override on every boot. 

But I have noticed that between 216-218, systemctl daemon-reload resets the sys configs and puts out a warning message which I should be not there even if we have to set the kernel sysconfig. 

# systemctl --version
systemd 218
-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP -BLKID -ELFUTILS +KMOD -IDN
# systemctl daemon-reload
Overwriting earlier assignment of kernel/sysrq in file '/usr/lib/sysctl.d/52-axis.conf'.
# cat /usr/lib/sysctl.d/52-axis.conf 
kernel.sysrq=1
#
Comment 1 Lennart Poettering 2016-06-07 11:12:46 UTC
I am pretty sure this works correctly these days. If it doesn't, please file a new bug on systemd github. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.