Red Hat Bugzilla – Bug 856967
RFE: shabang /bin/sh
Last modified: 2015-02-08 16:38:33 EST
Description of problem:
Kdump allows to inject a shell script with kdump_pre or kdump_post, but the script shabang is restricted only to /bin/msh interpreter. Otherwise, if using the common writing /bin/sh, our script cannot get run properly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. prepare a simple script
# cat /bin/kdump-script
echo "$0: Hello World!"
echo "$0: crash"
echo "$0: lsmod"
echo "$0: Done!"
2. add that in kdump.conf
3. start kdump and trigger a crash
From kdump kernel, it will output:
/bin/msh: option requires an argument -- c
BusyBox v1.2.0 (2012.07.17-15:34+0000) multi-call binary
No help available.
kdump_pre script exited with non-zero status
kdump-script get run successfully
Created attachment 612419 [details]
Thank you for submitting this issue for consideration. Red Hat Enterprise Linux 5 has reached the end of Production 1 Phase of its Life Cycle. Red Hat does not plan to incorporate the suggested capability in a future Red Hat Enterprise Linux 5 minor release. If you would like Red Hat to re-consider this feature request and the requested functionality is not currently in Red Hat Enterprise Linux 6, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.