Remove a redundant nfs check
In check_fs_modified, is_nfs_dump_target is already called, the dump target can't be nfs. No need to check here. Signed-off-by: Kairui Song <kasong@redhat.com> Acked-by: Lianbo Jiang <lijiang@redhat.com>
This commit is contained in:
parent
d54e5bab0f
commit
276de0f810
6
kdumpctl
6
kdumpctl
@ -495,15 +495,11 @@ check_fs_modified()
|
||||
fi
|
||||
|
||||
ddebug "_target=$_target _new_fstype=$_new_fstype"
|
||||
if [[ $(expr substr $_new_fstype 1 3) = "nfs" ]];then
|
||||
_new_dev=$_target
|
||||
else
|
||||
_new_dev=$(kdump_get_persistent_dev $_target)
|
||||
if [ -z "$_new_dev" ]; then
|
||||
derror "Get persistent device name failed"
|
||||
perror "Get persistent device name failed"
|
||||
return 2
|
||||
fi
|
||||
fi
|
||||
|
||||
_new_mntpoint="$(get_kdump_mntpoint_from_target $_target)"
|
||||
_dracut_args=$(lsinitrd $TARGET_INITRD -f usr/lib/dracut/build-parameter.txt)
|
||||
|
Loading…
Reference in New Issue
Block a user