Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 6286

Summary: sysinit issues error message of /proc/sys/kernel/sysrq not present
Product: [Retired] Red Hat Linux Reporter: Olivier CrĂȘte <olivier.crete>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: 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-10-25 16:04:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Olivier CrĂȘte 1999-10-23 17:57:05 UTC
If the kernel is compiled w/o sysrq support, rc.sysinit
issues an error message like "/proc/sys/kernel/sysrq: No
such file or directory" I think this simple patch could do
it

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

Comment 1 Bill Nottingham 1999-10-25 16:04:59 UTC
Already fixed in the latest initscripts in Raw Hide.