From: Kenneth D'souza kdsouza@redhat.com
Currently the kdumpctl script doesn't check if the path option is set more than once due to which a vmcore is not captured.
This patch addresses this issue by ensuring that only one path is specified in /etc/kdump.conf file.
Signed-off-by: Kenneth D'souza kdsouza@redhat.com --- kdumpctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdumpctl b/kdumpctl index 6a01c13..e465daf 100755 --- a/kdumpctl +++ b/kdumpctl @@ -198,7 +198,7 @@ check_config() { local nr
- nr=$(awk 'BEGIN{cnt=0} /^raw|^ssh[[:blank:]]|^nfs|^ext[234]|^xfs|^btrfs|^minix|^dracut_args .*--mount/{cnt++} END{print cnt}' $KDUMP_CONFIG_FILE) + nr=$(awk 'BEGIN{cnt=0} /^raw|^ssh[[:blank:]]|^nfs|^ext[234]|^xfs|^btrfs|^minix|^path|^dracut_args .*--mount/{cnt++} END{print cnt}' $KDUMP_CONFIG_FILE) [ $nr -gt 1 ] && { echo "More than one dump targets specified." return 1