[opensuse] Sysrq on oS 12.3
Hi all, I have noticed that sysrq is disabled in oS 12.3 since /proc/sys/kernel/sysrq contains 0. The only files containing kernel.sysrq are /etc/sysctl.conf and /lib/sysctl.d/sysctl.conf so following the comment in /etc/sysctl.conf I have created /etc/sysctl.d/sysctl.conf with content kernel.sysrq = 176 After a reboot, /proc/sys/kernel/sysrq still contains 0. The only way I have found for enabling sysrq is to comment out the relative line in /etc/sysctl.conf, even if this is not the expected way. So, what is the correct way to have sysrq enabled? If this is a bug, what is the right component against which to file the bug report? Best, Andrea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Sun, 28 Apr 2013 12:07:41 +0200
Andrea Turrini
Hi all,
I have noticed that sysrq is disabled in oS 12.3 since /proc/sys/kernel/sysrq contains 0.
The only files containing kernel.sysrq are /etc/sysctl.conf and /lib/sysctl.d/sysctl.conf so following the comment in /etc/sysctl.conf I have created /etc/sysctl.d/sysctl.conf with content
kernel.sysrq = 176
After a reboot, /proc/sys/kernel/sysrq still contains 0.
The only way I have found for enabling sysrq is to comment out the relative line in /etc/sysctl.conf, even if this is not the expected way.
/etc/sysctl.conf has priority over all other sources. See also https://bugzilla.redhat.com/show_bug.cgi?id=760254 and https://bugzilla.redhat.com/show_bug.cgi?id=924433
So, what is the correct way to have sysrq enabled? If this is a bug, what is the right component against which to file the bug report?
Best, Andrea
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/28/2013 04:10 PM, Andrey Borzenkov wrote:
В Sun, 28 Apr 2013 12:07:41 +0200 Andrea Turrini
пишет: Hi all,
I have noticed that sysrq is disabled in oS 12.3 since /proc/sys/kernel/sysrq contains 0.
The only files containing kernel.sysrq are /etc/sysctl.conf and /lib/sysctl.d/sysctl.conf so following the comment in /etc/sysctl.conf I have created /etc/sysctl.d/sysctl.conf with content
kernel.sysrq = 176
After a reboot, /proc/sys/kernel/sysrq still contains 0.
The only way I have found for enabling sysrq is to comment out the relative line in /etc/sysctl.conf, even if this is not the expected way.
/etc/sysctl.conf has priority over all other sources.
So the comment in such file is wrong. It says: # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ and since /etc/sysctl.conf is distribution provided (by procps), it has to be overridden by the file sysctl.conf in /etc/sysctl.d/ Otherwise, as pointed out in
what is benefit of having /etc/sysctl.d? Best, Andrea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Sun, 28 Apr 2013 16:36:09 +0200
Andrea Turrini
On 04/28/2013 04:10 PM, Andrey Borzenkov wrote:
В Sun, 28 Apr 2013 12:07:41 +0200 Andrea Turrini
пишет: Hi all,
I have noticed that sysrq is disabled in oS 12.3 since /proc/sys/kernel/sysrq contains 0.
The only files containing kernel.sysrq are /etc/sysctl.conf and /lib/sysctl.d/sysctl.conf so following the comment in /etc/sysctl.conf I have created /etc/sysctl.d/sysctl.conf with content
kernel.sysrq = 176
After a reboot, /proc/sys/kernel/sysrq still contains 0.
The only way I have found for enabling sysrq is to comment out the relative line in /etc/sysctl.conf, even if this is not the expected way.
/etc/sysctl.conf has priority over all other sources.
So the comment in such file is wrong. It says: # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/
and since /etc/sysctl.conf is distribution provided (by procps), it has to be overridden by the file sysctl.conf in /etc/sysctl.d/
Otherwise, as pointed out in
what is benefit of having /etc/sysctl.d?
Well ... the idea is that packages should not modify /etc/sysctl.conf directly at all. They should ship snippets in /usr/lib/sysctl.d and /etc/sysctl.conf is for system administrator and as such takes precedent. So I guess you should open bug report against package that owns /etc/sysctl.conf. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrea Turrini
-
Andrey Borzenkov