On 03/17/14 at 11:16am, Vivek Goyal wrote:
> +
> + if [ "$_fstype" = "nfs" ];then
> + kdump_install_net "$_target"
> + else
> + _target=$(kdump_to_udev_name $_target)
> + fi
Ok, we seem to have this functionality to convert to persistent names
both in mkdumprd as well as dracut-module-sh. How about coming up with
a common function in kudmp-lib.sh and use that at both the places. This
is a cleanup and can go in a separate patch.
Here I don't understand, could you say more or give an example?
Thanks
Baoquan
> +
> + echo "$_fstype $_target" >> /tmp/$$-kdump.conf
> +
> + _path=${_save_path##"$_mntpoint"}
> + sed -i -e "s#$_save_path#$_path#" /tmp/$$-kdump.conf
> + fi
> +
> +}
> +