From 4dfb0840df1b21177cf1535fcc3786552f0c6df6 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Tue, 7 Dec 2021 20:13:53 +0800 Subject: [PATCH] kdump/ppc64: suppress the error message "Could not find a registered notification tool" from servicelog_notify upstream: fedora related: bz2027568 conflict: none commit f0892eeceb96072822f74e7a9ad491f61867f343 Author: Coiby Xu Date: Wed Dec 1 15:37:06 2021 +0800 kdump/ppc64: suppress the error message "Could not find a registered notification tool" from servicelog_notify When kexec-tools is newly installed, kdump migration action hasn't registered and the following error could occur, INF dnf.rpm: Could not find a registered notification tool with the specified command ('/usr/lib/kdump/kdump-migrate-action.sh'). "servicelog_notify --list" could list registered notification tools for a command but it outputs the above error as well. So simply redirect the error to /dev/null when running "servicelog_notify --remove". Fixes: commit 146f66262222e96bca47b691ed243fa5097aa55c ("kdump/ppc64: migration action registration clean up") Acked-by: Tao Liu Acked-by: Hari Bathini Signed-off-by: Coiby Xu Signed-off-by: Tao Liu --- kexec-tools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index 171271e..aab9103 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -272,7 +272,7 @@ mv $RPM_BUILD_ROOT/etc/kdump-adv-conf/kdump_dracut_modules/* $RPM_BUILD_ROOT/%{d touch /etc/kdump.conf %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 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 %endif