[kexec-tools] remove wait for net ok function

Dave Young yangrr at fedoraproject.org
Mon Jan 28 06:03:17 UTC 2013


commit 5325594fca7b58a1e8d0344f71caaae3be015d42
Author: Dave Young <dyoung at redhat.com>
Date:   Mon Jan 28 14:01:05 2013 +0800

    remove wait for net ok function
    
    After recent dracut network changes, waiting for nic ready stuff is handled
    in cmdline hooks when generate udev rules. So wait_for_net_ok is not
    necessary any more in kdump.sh, Removing the code here.
    
    Signed-off-by: Dave Young <dyoung at redhat.com>
    Acked-by: Baoquan He <bhe at redhat.com>
    Acked-by: Vivek Goyal <vgoyal at redhat.com>

 dracut-kdump.sh |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/dracut-kdump.sh b/dracut-kdump.sh
index fc6e750..4f4079c 100755
--- a/dracut-kdump.sh
+++ b/dracut-kdump.sh
@@ -22,14 +22,6 @@ KDUMP_POST=""
 
 export PATH=$PATH:$KDUMP_SCRIPT_DIR
 
-# we use manual setup nics in udev rules,
-# so we need to test network is really ok
-wait_for_net_ok() {
-    local ip=$(getarg ip)
-    local iface=`echo $ip|cut -d':' -f1`
-    return $(wait_for_route_ok $iface)
-}
-
 do_default_action()
 {
     wait_for_loginit
@@ -204,7 +196,6 @@ read_kdump_conf()
             add_dump_code "dump_raw $config_val"
             ;;
         ssh)
-            wait_for_net_ok
             add_dump_code "dump_ssh $SSH_KEY_LOCATION $config_val"
             ;;
         esac


More information about the scm-commits mailing list