4dfb08 kdump/ppc64: suppress the error message "Could not find a registered notification tool" from servicelog_notify

Authored and Committed by liutgnu 2 years ago
    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 <coxu@redhat.com>
    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 <ltao@redhat.com>
        Acked-by: Hari Bathini <hbathini@linux.ibm.com>
        Signed-off-by: Coiby Xu <coxu@redhat.com>
    
    Signed-off-by: Tao Liu <ltao@redhat.com>
    
        
file modified
+1 -1