From 5325594fca7b58a1e8d0344f71caaae3be015d42 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Mon, 28 Jan 2013 14:01:05 +0800 Subject: [PATCH] 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 Acked-by: Baoquan He Acked-by: Vivek Goyal --- dracut-kdump.sh | 9 --------- 1 file changed, 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