From f3db4acbcf4d419b02d2e9a1e86e01288ce93bde Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Fri, 30 Jul 2021 14:40:45 +0800 Subject: [PATCH] Clear old crashkernl=auto in comment and doc Resolves: bz1986250 Upstream: Fedora commit 097059dedc987548742437bca6fd90793cf74c18 Author: Kairui Song Date: Fri Jul 30 14:40:45 2021 +0800 Clear old crashkernl=auto in comment and doc Acked-by: Pingfan Liu Signed-off-by: Kairui Song Signed-off-by: Kairui Song --- fadump-howto.txt | 9 ++++++--- kdumpctl | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/fadump-howto.txt b/fadump-howto.txt index 5360f3d..111586c 100644 --- a/fadump-howto.txt +++ b/fadump-howto.txt @@ -340,9 +340,12 @@ or OR # grubby --update-kernel=/boot/vmlinuz-`uname -r` --args="fadump=off" -If KDump is to be used as the dump capturing mechanism, update the crashkernel -parameter (Else, remove "crashkernel=" parameter too, using grubby): +Remove "crashkernel=" from kernel cmdline parameters: - # grubby --update-kernel=/boot/vmlinuz-$kver --args="crashkernl=auto" + # grubby --update-kernel=/boot/vmlinuz-`uname -r` --remove-args="crashkernel" + +If KDump is to be used as the dump capturing mechanism, reset the crashkernel parameter: + + # kdumpctl reset-crashkernel `uname -r` Reboot the system for the settings to take effect. diff --git a/kdumpctl b/kdumpctl index 8275292..e132d04 100755 --- a/kdumpctl +++ b/kdumpctl @@ -1230,7 +1230,7 @@ do_estimate() { baseline=$(( ${baseline%Y} * 1048576 )) fi - # The default value when using crashkernel=auto + # The default pre-reserved crashkernel value baseline_size=$((baseline * size_mb)) # Current reserved crashkernel size reserved_size=$(cat /sys/kernel/kexec_crash_size)