Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix systemd-networkd-wait-online race #181

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Dec 20, 2023

Older versions of systemd-networkd-wait-online (e.g. <253) will happily just exit without error if no links are available. This causes a race condition where in some cases a fakemachine will be created with no network interface.

Fix this by giving the network interface a proper name when it is created and waiting for that specific network interface to go online.

Older versions of systemd-networkd-wait-online (e.g. <253) will happily
just exit without error if no links are available. This causes a race
condition where in some cases a fakemachine will be created with no network
interface.

Fix this by giving the network interface a proper name when it is created
and waiting for that specific network interface to go online.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
@obbardc obbardc requested a review from sjoerdsimons December 20, 2023 10:39
@obbardc obbardc self-assigned this Dec 20, 2023
systemd-networkd can match wired interfaces based on Type=ether; let's
switch to that to simplify the interface matching.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Dec 29, 2023
Merged via the queue into main with commit f678bc3 Dec 29, 2023
20 checks passed
@obbardc obbardc deleted the wip/obbardc/fix-network-race branch January 8, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants