mkdumprd: Do not add "nfs" dracut module explicitly

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".

Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Xunlei Pang <xlpang@redhat.com>
This commit is contained in:
Xunlei Pang 2016-08-26 11:23:38 +08:00 committed by Dave Young
parent b22ed8dd3a
commit 8eb199cc91
1 changed files with 0 additions and 8 deletions

View File

@ -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