Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144492 Details for
Bug 220906
kdump init script fails when the crash kernel's commandline string is too long without a good error message
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
update the init script for kdump to handle the added configuration variable
rhel5_kdump_initd.patch (text/plain), 1.93 KB, created by
Amul Shah
on 2006-12-28 21:44:30 UTC
(
hide
)
Description:
update the init script for kdump to handle the added configuration variable
Filename:
MIME Type:
Creator:
Amul Shah
Created:
2006-12-28 21:44:30 UTC
Size:
1.93 KB
patch
obsolete
>--- /etc/init.d/kdump.orig 2006-12-28 17:27:21.000000000 -0500 >+++ /etc/init.d/kdump 2006-12-28 17:36:47.000000000 -0500 >@@ -25,6 +25,8 @@ BOOTDIR="/boot" > > KDUMP_KERNELVER="" > KDUMP_COMMANDLINE="" >+KDUMP_DEBUG=0 >+KDUMP_ERROR="/dev/null" > KEXEC_ARGS="" > KDUMP_CONFIG_FILE="/etc/kdump.conf" > >@@ -36,6 +38,10 @@ if [ -f /etc/sysconfig/kdump ]; then > . /etc/sysconfig/kdump > fi > >+if [ $KDUMP_DEBUG == "yes" ]; then >+ KDUMP_ERROR="/tmp/kdump_error.log.`date +"%Y-%m-%d-%H:%M"`" >+fi >+ > function save_core() > { > coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`" >@@ -184,7 +190,7 @@ function load_kdump() > > $KEXEC $KEXEC_ARGS $standard_kexec_args \ > --command-line="$KDUMP_COMMANDLINE" \ >- --initrd=$kdump_initrd $kdump_kernel 2>/dev/null >+ --initrd=$kdump_initrd $kdump_kernel 2>$KDUMP_ERROR > if [ $? == 0 ]; then > $LOGGER "kexec: loaded kdump kernel" > return 0 >@@ -200,7 +206,7 @@ function propagate_ssh_key() > #for the moment to create key, then flip back... > se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"` > if [ "$se_enforce" -ge 1 ]; then >- /usr/sbin/setenforce 0 2>&1 > /dev/null >+ /usr/sbin/setenforce 0 2>&1 > $KDUMP_ERROR > fi > > #Use dedicated key for kdump >@@ -229,13 +235,13 @@ function propagate_ssh_key() > echo "Using existing keys..." > else > echo -n "Generating new ssh keys... " >- /usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null >+ /usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > $KDUMP_ERROR > echo "done." > fi > > #If necessary, flip selinux back to enforcing > if [ "$se_enforce" -ge 1 ]; then >- /usr/sbin/setenforce 1 2>&1 > /dev/null >+ /usr/sbin/setenforce 1 2>&1 > $KDUMP_ERROR > fi > > #now find the target ssh user and server to contact. >@@ -306,7 +312,7 @@ function start() > > function stop() > { >- $KEXEC -p -u 2>/dev/null >+ $KEXEC -p -u 2>$KDUMP_ERROR > if [ $? == 0 ]; then > $LOGGER "kexec: unloaded kdump kernel" > echo -n "Stopping kdump:"; success; echo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220906
:
144491
| 144492 |
146330
|
146345