Kdump explicitly adds "nfs" dracut module in case of nfs dumping, actually in case of nfs dump, nfs is a mount target, and will be added into host_fs_types[], thus dracut will add it automatically, according to 95nfs/module-setup.sh check().
So, we can safely remove all the add_dracut_module "nfs".
Signed-off-by: Xunlei Pang xlpang@redhat.com --- mkdumprd | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/mkdumprd b/mkdumprd index 2791613..3705749 100644 --- a/mkdumprd +++ b/mkdumprd @@ -355,10 +355,6 @@ handle_default_dump_target() SAVE_PATH=${SAVE_PATH##"$_mntpoint"} _fstype=$(get_fs_type_from_target $_target)
- if $(is_fs_type_nfs $_fstype); then - add_dracut_module "nfs" - fi - add_mount "$_target" check_size fs $_target fi @@ -519,10 +515,6 @@ do perror_exit "Dump target $config_val is probably not mounted." fi
- if [ "$config_opt" = "nfs" ]; then - add_dracut_module "nfs" - fi - _absolute_save_path=$(make_absolute_save_path $config_val) _mntpoint=$(get_mntpoint_from_path $_absolute_save_path) if is_atomic && is_bind_mount $_mntpoint; then