diff --git a/kdump-lib.sh b/kdump-lib.sh index a40617a..c15e19a 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -861,7 +861,6 @@ kdump_get_arch_recommend_crashkernel() fi fi - _ck_cmdline=${_ck_cmdline//-:/-102400T:} echo -n "$_ck_cmdline" } @@ -877,6 +876,7 @@ kdump_get_arch_recommend_size() fi sys_mem=$(get_system_size) _ck_cmdline=$(kdump_get_arch_recommend_crashkernel) + _ck_cmdline=${_ck_cmdline//-:/-102400T:} get_recommend_size "$sys_mem" "$ck_cmdline" }