fix: add systemd-networkd ordering and wait-online timeout - #169
Open
rgoltz wants to merge 1 commit into
Open
Conversation
joeysk2012
reviewed
Aug 17, 2026
joeysk2012
reviewed
Aug 17, 2026
rgoltz
force-pushed
the
fix/policy-routes-wait-online-timeout
branch
from
August 18, 2026 01:57
ed10586 to
ebbc5f4
Compare
policy-routes@.service can enter an endless retry loop when a DHCP lease is lost during boot (e.g. due to networkctl reload by another service). The systemd-networkd DHCP client may stop requesting rather than retrying, and wait-online blocks indefinitely with no explicit timeout. Changes: - Add After=systemd-networkd.service to ensure networkd is running before policy-routes attempts to wait for the interface - Increase StartLimitIntervalSec from 10 to 60 to prevent permanent failure when wait-online fails quickly in a transient state - Add --timeout=60 to systemd-networkd-wait-online for bounded wait and faster retry cycle Fixes: amazonlinux#168
rgoltz
force-pushed
the
fix/policy-routes-wait-online-timeout
branch
from
August 18, 2026 02:13
ebbc5f4 to
4fce925
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #168
When a DHCP lease is lost during boot (e.g. another service calls
networkctl reload), the systemd-networkd DHCP client may stop requesting rather than retrying.policy-routes@.servicethen loops onsystemd-networkd-wait-onlinewith no explicit timeout, blocking indefinitely.This PR:
After=systemd-networkd.serviceto reduce the race window on boot--timeout=60for bounded wait and faster retry cycleStartLimitIntervalSecfrom 10 to 60 to prevent permanent failure when wait-online fails quickly in a transient stateJournal evidence and full analysis in #168.