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:
parent
0624148414
commit
70deeb474b
5
kdumpctl
5
kdumpctl
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user