kdumpctl/estimate: Fix unnecessary warning
do_estimate prints the warning that the reserved crashkernel is lower than the recommended one even then when both values are identical. This might cause confusion. So omit printing the warning when both values are equal. Signed-off-by: Philipp Rudo <prudo@redhat.com> Acked-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
parent
7141d044c8
commit
8736aa5bb3
2
kdumpctl
2
kdumpctl
@ -1270,7 +1270,7 @@ do_estimate()
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $reserved_size -le $recommended_size ]]; then
|
if [[ $reserved_size -lt $recommended_size ]]; then
|
||||||
echo "WARNING: Current crashkernel size is lower than recommended size $((recommended_size / size_mb))M."
|
echo "WARNING: Current crashkernel size is lower than recommended size $((recommended_size / size_mb))M."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user