Red Hat Bugzilla – Bug 468114
core_collector line in /etc/kdump.conf fails due to errors from /sbin/mkdumprd
Last modified: 2009-09-06 23:08:07 EDT
Description of problem:
The /sbin/mkdumprd in RHEL5.3_Alpha can no longer parse the core_collector line in /etc/kdump.conf. The line looks like:
core_collector makedumpfile -d 31
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure kdump.
2. Add the above line to /etc/kdump.conf.
3. Service kdump restart.
/sbin/mkdumprd: line 1716: test: too many arguments
/etc/kdump.conf: Need a location for core_collector
Should work (worked in RHEL5.2).
I have temporarily hacked /sbin/mkdumprd for our use to get around this by changing line 1752 to read:
kdmup_chk "test -n \"$config_val\"" "Need a location for $config_opt"
That is, I removed two extra pairs of back slashes around "$config_opt", making this line the same as it was in RHEL5.2. (You probably want to do this in a cleaner way...)
*** This bug has been marked as a duplicate of bug 463878 ***