From 8eb199cc9173715887b30e9ca6652dc2406eab98 Mon Sep 17 00:00:00 2001 From: Xunlei Pang Date: Fri, 26 Aug 2016 11:23:38 +0800 Subject: [PATCH] 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 Signed-off-by: Xunlei Pang --- 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