420f55 Set up kdump network by directly copying NM connection profile to initrd

Authored and Committed by Coiby Xu 2 years ago
    Set up kdump network by directly copying NM connection profile to initrd
    
    Resolves: bz2076416
    Upstream: Fedora
    Conflict: None
    
    commit 63c3805c486adf700bafb5ad78cc9b0f55fcb345
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Fri Sep 17 13:02:07 2021 +0800
    
        Set up kdump network by directly copying NM connection profile to initrd
    
        This patch setup kdump network by directly copying NM connection profile(s)
        for different network setup including bond, bridge, vlan, and team. For
        vlan network, rename phydev to parent_netif to improve code readability.
    
        With the new approach, the related code to build up dracut cmdline
        parameter such rd.route, ip and etc can be cleaned up. And there is no
        need to setup dns when copying .nmconnection directly to initrd
        either. Note the bootdev dracut command line parameter is only used by
        dracut's 35network-legacy and network-manager doesn't use it, remove
        related code as well.
    
        Note
        1. kdump_setup_vlan/bond/... are no longer called in subshells in order
           to modify global variables like unique_netifs
        2. The original kdump_install_net is renamed to better reflect its
           current function
    
        Signed-off-by: Coiby Xu <coxu@redhat.com>
        Reviewed-by: Thomas Haller <thaller@redhat.com>
        Reviewed-by: Philipp Rudo <prudo@redhat.com>
    
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    
        
file modified
+57 -230