Bug 993562

Summary: sysrq configuration not honoured
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: johannbg, kdudka, lnykryn, msekleta, notting, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-12 19:39:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Volný 2013-08-06 07:50:17 UTC
Description of problem:
My machine just hanged on poweroff. As I had enabled sysrq before, I've tried to halt it via the magic key combos. Bad luck, the only thing I could do was sync.

Version-Release number of selected component (if applicable):
systemd-204-9.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. # echo "kernel.sysrq = 1" > /etc/sysctl.d/sysrq.conf
2. reboot
3. $ cat /proc/sys/kernel/sysrq

Actual results:
16

Expected results:
1

Additional info:
https://fedoraproject.org/wiki/QA/Sysrq#How_do_I_enable_the_magic_SysRq_key.3F

Comment 1 Kamil Dudka 2013-08-14 14:04:40 UTC
You can use the following to work around the bug:

# cp /usr/lib/sysctl.d/50-default.conf /etc/sysctl.d/
# sed -i 's/kernel.sysrq = 16/kernel.sysrq = 1/' /etc/sysctl.d/50-default.conf

Comment 2 Karel Volný 2013-08-29 14:25:26 UTC
but there are multiple settings in that file, what if something changes in the future and the change will go unnoticed due to the local copy?

Comment 3 Lennart Poettering 2013-09-12 19:39:30 UTC

*** This bug has been marked as a duplicate of bug 1007150 ***