Bug 6995

Summary: rc.sysinit shouldn't try to use sysrq if it doesn't exist
Product: [Retired] Red Hat Linux Reporter: Jonathan Kamens <h1k6zn2m>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: h1k6zn2m, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-15 16:52:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 1999-11-14 15:21:04 UTC
The code that tries to turn off sysrq in rc.sysinit should read as follows:

# Turn off sysrq
if [ "$MAGIC_SYSRQ" = "no" -a -e /proc/sys/kernel/sysrq ]; then
        echo "0" > /proc/sys/kernel/sysrq
fi

The addition of "-a /proc/sys/kernel/sysrq" ensures that the script won't
try to disable sysrq if it isn't compiled into the current kernel.

Comment 1 Bill Nottingham 1999-11-15 16:52:59 UTC
already fixed in the errata release...