kdump.conf: redirect unknown architecture warning to stderr

The warning messages should not be included in the generated files.
Redirecting the warning for an unknown architecture to stderr.

Signed-off-by: Lichen Liu <lichliu@redhat.com>
Reviewed-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
Lichen Liu 2023-06-05 17:35:53 +08:00 committed by Coiby Xu
parent e42a823dae
commit 29fe563644
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ s390x)
x86_64) ;;
*)
echo "Warning: Unknown architecture '$1', using default kdump.conf template."
echo "Warning: Unknown architecture '$1', using default kdump.conf template." >&2
;;
esac

View File

@ -107,7 +107,7 @@ x86_64)
"irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd cma=0 hugetlb_cma=0"
;;
*)
echo "Warning: Unknown architecture '$1', using default sysconfig template."
echo "Warning: Unknown architecture '$1', using default sysconfig template." >&2
;;
esac