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 <coxu@redhat.com>
Reviewed-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
parent
b41cab7099
commit
12e6cd2b76
2
kdumpctl
2
kdumpctl
|
@ -1525,7 +1525,7 @@ reset_crashkernel()
|
||||||
|
|
||||||
_is_bootloader_installed()
|
_is_bootloader_installed()
|
||||||
{
|
{
|
||||||
if [[ $(uname -r) == s390x ]]; then
|
if [[ $(uname -m) == s390x ]]; then
|
||||||
test -f /etc/zipl.conf
|
test -f /etc/zipl.conf
|
||||||
else
|
else
|
||||||
test -f /boot/grub2/grub.cfg
|
test -f /boot/grub2/grub.cfg
|
||||||
|
|
Loading…
Reference in New Issue