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@redhat.com> Acked-by: Baoquan He <bhe@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
ae1db90332
commit
5325594fca
@ -22,14 +22,6 @@ KDUMP_POST=""
|
|||||||
|
|
||||||
export PATH=$PATH:$KDUMP_SCRIPT_DIR
|
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()
|
do_default_action()
|
||||||
{
|
{
|
||||||
wait_for_loginit
|
wait_for_loginit
|
||||||
@ -204,7 +196,6 @@ read_kdump_conf()
|
|||||||
add_dump_code "dump_raw $config_val"
|
add_dump_code "dump_raw $config_val"
|
||||||
;;
|
;;
|
||||||
ssh)
|
ssh)
|
||||||
wait_for_net_ok
|
|
||||||
add_dump_code "dump_ssh $SSH_KEY_LOCATION $config_val"
|
add_dump_code "dump_ssh $SSH_KEY_LOCATION $config_val"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user