From fe8c4d3981a52ba09acbb1494b49532aba86c5a6 Mon Sep 17 00:00:00 2001 From: Lichen Liu Date: Jun 27 2023 01:25:17 +0000 Subject: spec: kdump/ppc64: make servicelog_notify silent when there are no errors Resolves: bz2165018 Upstream: Fedora Rawhide Conflict: None commit daa829f79e308e9d53060331f7721d3ee6b9f549 Author: Lichen Liu Date: Mon Jun 12 17:17:43 2023 +0800 spec: kdump/ppc64: make servicelog_notify silent when there are no errors There is confusing message in /var/log/anaconda/packaging.log when installing kexec-tools during the system installation on ppc64le: Event Notification Registration successful (id: 1) Make servicelog_notify slient when there are no erros. Signed-off-by: Lichen Liu Reviewed-by: Coiby Xu Signed-off-by: Lichen Liu --- diff --git a/kexec-tools.spec b/kexec-tools.spec index 1c16394..12c655b 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -286,7 +286,7 @@ touch /etc/kdump.conf %ifarch ppc64 ppc64le servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh 2>/dev/null -servicelog_notify --add --command=/usr/lib/kdump/kdump-migrate-action.sh --match='refcode="#MIGRATE" and serviceable=0' --type=EVENT --method=pairs_stdin +servicelog_notify --add --command=/usr/lib/kdump/kdump-migrate-action.sh --match='refcode="#MIGRATE" and serviceable=0' --type=EVENT --method=pairs_stdin >/dev/null %endif # This portion of the script is temporary. Its only here @@ -317,7 +317,7 @@ fi %preun %ifarch ppc64 ppc64le -servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh +servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh >/dev/null %endif %systemd_preun kdump.service