diff --git a/dracut-kdump.sh b/dracut-kdump.sh index 2999073..faeb7c5 100755 --- a/dracut-kdump.sh +++ b/dracut-kdump.sh @@ -115,7 +115,7 @@ dump_ssh() is_ssh_dump_target() { - grep -q "^ssh.*@" $conf_file + grep -q "^ssh[[:blank:]].*@" $conf_file } is_raw_dump_target() diff --git a/kdumpctl b/kdumpctl index 640349d..3e6618b 100755 --- a/kdumpctl +++ b/kdumpctl @@ -364,7 +364,7 @@ function save_raw() function start() { local nr - nr=$(awk 'BEGIN{cnt=0} /^raw |^ssh |^nfs |^ext[234] |^xfs |^btrfs |^minix /{cnt++} END{print cnt}' $KDUMP_CONFIG_FILE) + nr=$(awk 'BEGIN{cnt=0} /^raw|^ssh[[:blank:]]|^nfs|^ext[234]|^xfs|^btrfs|^minix/{cnt++} END{print cnt}' $KDUMP_CONFIG_FILE) [ $nr -gt 1 ] && { echo -n "Error: More than one dump targets specified"; echo return 1