Bug 443802 - kdump_pre is not accepted in /etc/kdump.conf
Summary: kdump_pre is not accepted in /etc/kdump.conf
Keywords:
Status: CLOSED DUPLICATE of bug 436982
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kexec-tools
Version: 5.2
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Neil Horman
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-23 13:49 UTC by Charlotte Richardson
Modified: 2009-09-09 05:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-23 13:58:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Charlotte Richardson 2008-04-23 13:49:22 UTC
Description of problem:
Cannot set a kdump_pre script in /etc/kdump.conf.


Version-Release number of selected component (if applicable):
/sbin/kexec -v
kexec-tools-testing 20070330 released 30th March 2007

How reproducible:
Always


Steps to Reproduce:
1. Add kdump_pre some_script to /etc/kdump.conf
2. service kdump restart
  
Actual results:
Error "Unsupported type kdump_pre".


Expected results:
Should work! We need to be able to use both a kdump_pre and a kdump_post 
script. (As an aside, I have not gotten either of them to actually work even 
after fixing this bug, because no matter where I put the scripts, even if I 
list them in extra_bins in the kdump.conf file, the kdump kernel cannot 
actually find them to run. I'm surely missing something... please let me know 
what it is!)


Additional info:

There are two problems here.

1) /sbin/mkdumprd is missing a case for kdump_pre in the main loop that reads 
config_opt lines from kdump.conf and so drops into the code that produces that 
error message, which would normally be from an unsupported file system type. 
It should do nothing, the same as it does for kdump_post.

2) Also, /etc/rc.d/init.d/kdump does not check for kdump_pre or run it if 
there is one.

Comment 1 Neil Horman 2008-04-23 13:58:54 UTC
fixed in kexec-tools-1.102pre-19.el5.

Also, just so that you know, the pre and post scripts are only meant to be run
immeidately before and after a dump capture when configured to happen in the
initramfs (i.e. an dump target must be specified in /etc/kdump.conf)

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


Note You need to log in before you can comment on or make changes to this bug.