Please ignore this patch.
Will send a V2 found an issue.
On Fri, Aug 10, 2018 at 12:38 AM, Kenneth Dsouza <kdsouza(a)redhat.com> wrote:
> From: Kenneth D'souza <kdsouza(a)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(a)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
> --
> 2.14.3
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.o...