---------- Forwarded message ---------
From: Coiby Xu <coxu(a)redhat.com>
Date: Mon, Feb 20, 2023 at 5:40 PM
Subject: [PATCH] Use the correct command to get architecture
To: <kexec(a)lists.fedoraproject.org>
`uname -m` was used by mistake. As a result, kexec-tools failed to
update crashkernel=auto during in-place upgrade from RHEL8 to RHEL9.
Maybe you want to say "`uname -r` was used by mistake"?
Other than that, this patch looks good to me.
Reviewed-by: Lichen Liu <lichliu(a)redhat.com>
`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 <coxu(a)redhat.com>
---
kdumpctl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdumpctl b/kdumpctl
index 553c3924..2bec4281 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
--
2.39.1
_______________________________________________
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue