With the introduction of ${OPT[fstype]} this call to kdump_get_conf_val
can be removed now as well.
Signed-off-by: Philipp Rudo <prudo(a)redhat.com>
---
kdumpctl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/kdumpctl b/kdumpctl
index a26f0bd..d7dcf1a 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -819,8 +819,9 @@ save_raw()
{
local raw_target
- raw_target=$(kdump_get_conf_val raw)
- [[ -z $raw_target ]] && return 0
+ [[ ${OPT[_fstype]} == raw ]] || return 0
+
+ raw_target=${OPT[_target]}
[[ -b $raw_target ]] || {
derror "raw partition $raw_target not found"
return 1
--
2.35.1