Allow calling mkdumprd from kdumpctl even if targat not mounted

Ignore mount check in kdumpctl, mkdumprd will still fail building and
exit if target is not mounted.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Pingfan Liu <piliu@redhat.com>
This commit is contained in:
Kairui Song 2020-03-12 20:49:58 +08:00
parent 0624148414
commit 70deeb474b

View File

@ -475,11 +475,6 @@ check_dump_fs_modified()
fi
fi
if ! is_mounted $_target; then
echo "Dump target $_target is probably not mounted."
return 2
fi
_new_mntpoint="$(get_kdump_mntpoint_from_target $_target)"
_dracut_args=$(lsinitrd $TARGET_INITRD -f usr/lib/dracut/build-parameter.txt)
if [[ -z "$_dracut_args" ]];then