From 036189b13fd531b7e8524741eacab16d8e08e4fb Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 16 Jun 2015 10:10:52 +0200 Subject: [PATCH] increase network initialization timeout to 2 minutes to check conjecture regarding poor system deps --- initscripts/pl_netinit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/initscripts/pl_netinit b/initscripts/pl_netinit index b658fcd..34375f5 100755 --- a/initscripts/pl_netinit +++ b/initscripts/pl_netinit @@ -267,7 +267,7 @@ ETH_DEVICE= if [[ -n "$NET_DEVICE" ]]; then # the user specified a mac address we should use. find the network # device for it. - NET_DEVICE=$(tr A-Z a-z <<<$NET_DEVICE) + NET_DEVICE=$(tr A-Z a-z <<< $NET_DEVICE) pushd /sys/class/net for device in *; do @@ -309,7 +309,11 @@ fi # in any case, let us try to work around that by allowing some delay # here -ALLOW=5 +# tmp: Thierry June 2015 +# on fedora 21 nodes we see this running in a context where eth0 is not known to the system +# could be related to a dependency that we poorly describe to systemd +# I am increasing this timeout to 2 minutes in order to check that conjecture +ALLOW=120 COUNTER=0 while true; do if /sbin/ifconfig $ETH_DEVICE >& /dev/null; then -- 2.43.0