kdumpctl: echo msg when waiting for connection
Print some message during the long wait period to reflect the process. The message will look like: Network dump target is not usable, waiting for it to be ready ... Signed-off-by: Pingfan Liu <piliu@redhat.com> Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
parent
a0db00d575
commit
e07fc3e071
7
kdumpctl
7
kdumpctl
@ -736,6 +736,7 @@ check_ssh_config()
|
|||||||
check_and_wait_network_ready()
|
check_and_wait_network_ready()
|
||||||
{
|
{
|
||||||
local start_time=$(date +%s)
|
local start_time=$(date +%s)
|
||||||
|
local warn_once=1
|
||||||
local cur
|
local cur
|
||||||
local diff
|
local diff
|
||||||
local retval
|
local retval
|
||||||
@ -760,6 +761,12 @@ check_and_wait_network_ready()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $warn_once -eq 1 ]; then
|
||||||
|
echo "Network dump target is not usable, waiting for it to be ready"
|
||||||
|
warn_once=0
|
||||||
|
fi
|
||||||
|
echo -n .
|
||||||
|
|
||||||
cur=$(date +%s)
|
cur=$(date +%s)
|
||||||
let "diff = $cur - $start_time"
|
let "diff = $cur - $start_time"
|
||||||
# 60s time out
|
# 60s time out
|
||||||
|
Loading…
Reference in New Issue
Block a user