Description of problem:
Kdump can dump the vmcore to remote nfs target if kdump was
configred by using nfs dump and nfs target was mounted before
building kdump initramfs. But if we use hostname to configure
nfs dump, Though the kdump service will start successfully, dump
will fail because there isn't a /etc/hosts file in initramfs.
Resolution:
copy /etc/hosts to initramfs.
Signed-off-by: arthur <zzou(a)redhat.com>
---
mkdumprd | 1 +
1 file changed, 1 insertion(+)
diff --git a/mkdumprd b/mkdumprd
index 6de1755..d18882a 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -520,6 +520,7 @@ do
if [ "$config_opt" = "nfs" ]; then
add_dracut_module "nfs"
+ add_dracut_arg "--install" "/etc/hosts"
fi
add_mount "$config_val"
mkdir_save_path_fs $config_val
--
1.8.4.2