Why sysrq is limited to only "sync" command on official fedora kernel?

Michal Schmidt mschmidt at redhat.com
Wed Feb 25 14:39:02 UTC 2015


On 02/25/2015 03:04 PM, Josh Boyer wrote:
> On Wed, Feb 25, 2015 at 8:54 AM, Ali AlipourR <alipoor90 at gmail.com> wrote:
>> Hi,
>>
>> Why sysrq is limited to only "sync" command on official fedora kernel?
> 
> The kernel itself isn't limited.  It's just set that way in
> /usr/lib/sysctl.d/50-default.conf which is provided by systemd.  You
> can edit that file,

The file in /usr will be overwritten by the next package update.

> create your own in /etc/sysctl.d/,

Yes, local configuration belongs to /etc.
See also "man sysctl.d".

> or (as root) set it to whatever you would like via /proc/sys/kernel/sysrq.

Or pass "sysrq_always_enabled" on the kernel command line.

        sysrq_always_enabled
                        [KNL]
                        Ignore sysrq setting - this boot parameter will
                        neutralize any effect of /proc/sys/kernel/sysrq.
                        Useful for debugging.

Michal



More information about the devel mailing list