Skip to content

Commit 2628191

Browse files
authored
Merge pull request #123 from sparrc/sysfs-node-log-tweak
Change "Waiting for sysfs node to exist" log message
2 parents e60ce1c + d5d0e92 commit 2628191

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/setup-policy-routes.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ refresh)
4949
;;
5050
start)
5151
register_networkd_reloader
52+
counter=0
5253
while [ ! -e "/sys/class/net/${iface}" ]; do
53-
debug "Waiting for sysfs node to exist"
54+
if ((counter % 1000 == 0)); then
55+
debug "Waiting for sysfs node to exist for ${iface} (iteration $counter)"
56+
fi
5457
sleep 0.1
58+
((counter++))
5559
done
5660
info "Starting configuration for $iface"
5761
debug /lib/systemd/systemd-networkd-wait-online -i "$iface"

0 commit comments

Comments
 (0)