561952 Wait for the network to be truly ready before dumping vmcore

Authored and Committed by Coiby Xu 2 years ago
    Wait for the network to be truly ready before dumping vmcore
    
    Resolves: bz2076416
    Upstream: Fedora
    Conflict: None
    
    commit 9792994f2f13dd7d6561140fe4b590114a8571c1
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Thu Sep 22 22:31:47 2022 +0800
    
        Wait for the network to be truly ready before dumping vmcore
    
        nm-wait-online-initrd.service installed by dracut's 35-networkmanager
        module calls nm-online with "-s" which means it returns immediately when
        NetworkManager logs "startup complete". Thus it doesn't truly wait for
        network connectivity to be established [1]. Wait for the network to be
        truly ready before dumping vmcore. There are two benefits brought by
        this approach,
          - ssh/nfs dumping won't fail because of that the network is not
           ready e.g. [2][3]
          - users don't need to use workarounds like rd.net.carrier.timeout to
            make sure the network is ready
    
        [1] https://bugzilla.redhat.com/show_bug.cgi?id=1485712
        [2] https://bugzilla.redhat.com/show_bug.cgi?id=1909014
        [3] https://bugzilla.redhat.com/show_bug.cgi?id=2035451
    
        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
+25 -1