Add tab key as delimiter for core_collector in kdump.conf
In kdump.conf, space key is used as delimiter by default. In kdump_install_conf of dracut-module-setup.sh, if specify core_collector with a tab delimiter, the tool may not be copied into kdump-initrd. E.g, core_collector scp -v And in dump_ssh of dracut-kdump.sh, dumping will fail caused by tab key in core_collector. Here change code to allow tab key as delimiter when specifying core_collector. Signed-off-by: Baoquan He <bhe@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
8ab66d6a68
commit
259baae8f3
|
@ -112,7 +112,7 @@ dump_ssh()
|
||||||
|
|
||||||
save_vmcore_dmesg_ssh ${DMESG_COLLECTOR} ${_dir} "${_opt}" $2
|
save_vmcore_dmesg_ssh ${DMESG_COLLECTOR} ${_dir} "${_opt}" $2
|
||||||
|
|
||||||
if [ "${CORE_COLLECTOR%% *}" = "scp" ]; then
|
if [ "${CORE_COLLECTOR%%[[:blank:]]*}" = "scp" ]; then
|
||||||
scp -q $_opt /proc/vmcore "$2:$_dir/vmcore-incomplete" || return 1
|
scp -q $_opt /proc/vmcore "$2:$_dir/vmcore-incomplete" || return 1
|
||||||
ssh $_opt $2 "mv $_dir/vmcore-incomplete $_dir/vmcore" || return 1
|
ssh $_opt $2 "mv $_dir/vmcore-incomplete $_dir/vmcore" || return 1
|
||||||
else
|
else
|
||||||
|
|
|
@ -251,7 +251,7 @@ kdump_install_conf() {
|
||||||
dracut_install $config_val
|
dracut_install $config_val
|
||||||
;;
|
;;
|
||||||
core_collector)
|
core_collector)
|
||||||
dracut_install "${config_val%% *}"
|
dracut_install "${config_val%%[[:blank:]]*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done < /etc/kdump.conf
|
done < /etc/kdump.conf
|
||||||
|
|
Loading…
Reference in New Issue