diff --git a/bin/setup-policy-routes.sh b/bin/setup-policy-routes.sh index b0e3b95..23f7d98 100755 --- a/bin/setup-policy-routes.sh +++ b/bin/setup-policy-routes.sh @@ -50,7 +50,7 @@ refresh) start) register_networkd_reloader counter=0 - max_wait=3000 # 5 minute timeout to avoid infinite loop if sysfs node never appears + max_wait=6000 # 10 minute timeout to avoid infinite loop if sysfs node never appears while [ ! -e "/sys/class/net/${iface}" ]; do if ((counter % 1000 == 0)); then debug "Waiting for sysfs node to exist for ${iface} (iteration $counter)" diff --git a/lib/lib.sh b/lib/lib.sh index 409ff7f..4eaaddd 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -660,7 +660,7 @@ maybe_reload_networkd() { register_networkd_reloader() { local -i registered=1 cnt=0 - local -i max=3000 # 300s (3000 × 0.1s); matches sysfs wait timeout in setup-policy-routes.sh + local -i max=6000 # 600s (6000 × 0.1s); matches sysfs wait timeout in setup-policy-routes.sh local -r lockfile="${lockdir}/${iface}" local old_opts=$-