Remove duplicate prefix path ${initdir}
dracut will place the config in the random path during generating the initramfs. Remove the duplicate prefix path ${initdir}. Signed-off-by: Minfei Huang <mhuang@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
77951bf1d3
commit
7f44d3ee37
@ -336,7 +336,7 @@ kdump_install_net() {
|
|||||||
# the default gate way for network dump, eth1 in the fence kdump path will
|
# the default gate way for network dump, eth1 in the fence kdump path will
|
||||||
# call kdump_install_net again and we don't want eth1 to be the default
|
# call kdump_install_net again and we don't want eth1 to be the default
|
||||||
# gateway.
|
# gateway.
|
||||||
if [ ! -f ${initdir}${initdir}/etc/cmdline.d/60kdumpnic.conf ] &&
|
if [ ! -f ${initdir}/etc/cmdline.d/60kdumpnic.conf ] &&
|
||||||
[ ! -f ${initdir}/etc/cmdline.d/70bootdev.conf ]; then
|
[ ! -f ${initdir}/etc/cmdline.d/70bootdev.conf ]; then
|
||||||
echo "kdumpnic=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/60kdumpnic.conf
|
echo "kdumpnic=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/60kdumpnic.conf
|
||||||
echo "bootdev=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/70bootdev.conf
|
echo "bootdev=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/70bootdev.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user