From 12e6cd2b76a10bb6b52c0cc28ad0e8c8f57a319a Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Mon, 20 Feb 2023 17:33:08 +0800 Subject: [PATCH] Use the correct command to get architecture `uname -m` was used by mistake. As a result, kexec-tools failed to update crashkernel=auto during in-place upgrade from RHEL8 to RHEL9. `uname -m` should be used to get architecture instead. Fixes: 5951b5e2 ("Don't try to update crashkernel when bootloader is not installed") Signed-off-by: Coiby Xu Reviewed-by: Lichen Liu --- kdumpctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdumpctl b/kdumpctl index 553c392..2bec428 100755 --- a/kdumpctl +++ b/kdumpctl @@ -1525,7 +1525,7 @@ reset_crashkernel() _is_bootloader_installed() { - if [[ $(uname -r) == s390x ]]; then + if [[ $(uname -m) == s390x ]]; then test -f /etc/zipl.conf else test -f /boot/grub2/grub.cfg