fa2f8f Don't run kdump_check_setup_iscsi in a subshell in order to collect needed network interfaces

Authored and Committed by Coiby Xu 2 years ago
    Don't run kdump_check_setup_iscsi in a subshell in order to collect needed network interfaces
    
    Resolves: bz2076416
    Upstream: Fedora
    Conflict: None
    
    commit 523cda8f343b1a48799a5c25e1d76a2a475a6b1d
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Fri Nov 25 12:07:25 2022 +0800
    
        Don't run kdump_check_setup_iscsi in a subshell in order to collect needed
        network interfaces
    
        Currently, dumping to iSCSI target fails because the global array
        (unique_netifs) that stores the network interfaces needed by kdump is
        empty. The root cause is change of the array made in a subshell (a child
        process) is inaccessible to the parent process. So don't run
        kdump_check_setup_iscsi in a subshell.
    
        Fixes: 63c3805c ("Set up kdump network by directly copying NM connection profile to initrd")
        Signed-off-by: Coiby Xu <coxu@redhat.com>
        Reviewed-by: Pingfan Liu <piliu@redhat.com>
    
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    
        
file modified
+2 -2