[PATCH v2 5/6] module-setup.sh: setup fence kdump environment
Vivek Goyal
vgoyal at redhat.com
Wed Jan 22 17:59:15 UTC 2014
On Mon, Jan 13, 2014 at 06:23:11PM +0800, WANG Chao wrote:
[..]
> #save netdev used for kdump as cmdline
> - echo "kdumpnic=${_netdev}" > ${initdir}/etc/cmdline.d/60kdumpnic.conf
> - echo "bootdev=${_netdev}" > ${initdir}/etc/cmdline.d/70bootdev.conf
> + #fence kdump would override bootdev and kdumpnic, we should avoid that.
> + if [ ! -f ${initdir}${initdir}/etc/cmdline.d/60kdumpnic.conf ] &&
> + [ ! -f ${initdir}/etc/cmdline.d/70bootdev.conf ]; then
> + echo "kdumpnic=${_netdev}" > ${initdir}/etc/cmdline.d/60kdumpnic.conf
> + echo "bootdev=${_netdev}" > ${initdir}/etc/cmdline.d/70bootdev.conf
> + fi
Chao,
What's this change. Can you explain a bit.
Thanks
Vivek
More information about the kexec
mailing list