Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/setup-policy-routes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$-

Expand Down
Loading