From 7f44d3ee3702c91ce873e60a3f8c8e04f74377ac Mon Sep 17 00:00:00 2001 From: Minfei Huang Date: Fri, 18 Sep 2015 20:45:45 +0800 Subject: [PATCH] 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 Acked-by: Dave Young --- dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 9b398eb..4cd7107 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -336,7 +336,7 @@ kdump_install_net() { # 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 # 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 echo "kdumpnic=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/60kdumpnic.conf echo "bootdev=$(kdump_setup_ifname $_netdev)" > ${initdir}/etc/cmdline.d/70bootdev.conf