Skip to content

Use systemd-networkd-wait-online --any by default #193

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

intelfx
Copy link
Contributor

@intelfx intelfx commented Jun 4, 2025

This means that systemd-networkd-wait-online (which is used when e.g. mounting remote filesystems via fstab) will only wait for the first (networkd-managed) interface to come up, not all of them. This properly ignores any networkd-unmanaged interfaces such as lo, tailscale0, WWAN modems or dynamically created otgnet ones.

This way, systemd-networkd-wait-online won't hang on boot for users who only have some of the configured interfaces online/in use (which is the case for everyone who sets up Wi-Fi, since kvmd-bootconfig does not remove eth0.network even if it was never intended to be used).

We deem this semantics typical for Pi-KVM in general, thus the configuration override will be shipped as part of kvmd package. Users who do need to wait for all interfaces to activate will have to countermand this drop-in manually.

Fixes pikvm/pikvm#1514.

intelfx added 2 commits June 4, 2025 18:07
We are about to have subdirectories in configs/os/services/, so use
`cp` instead of `install` to copy everything wholesale.
This way, systemd-networkd-wait-online won't hang on boot for users
who only have _some_ of the configured interfaces online / in use
(which is the case for everyone who sets up Wi-Fi, since kvmd-bootconfig
does not remove eth0.network even if it was never intended to be used).

We deem this networking semantics typical for Pi-KVM in general; users
who need to wait for multiple interfaces to activate will have to
countermand this drop-in manually.

Fixes pikvm/pikvm#1514.
@intelfx intelfx force-pushed the work/fix-1514-networkd-wait-online branch from 92e4824 to 4bb6579 Compare June 4, 2025 15:18
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.

Provide config option to --ignore=network-interface at boot.
1 participant