Skip to content

Mask network wait-online services to prevent boot delays#5896

Closed
reinierbutot wants to merge 2 commits into
basecamp:devfrom
reinierbutot:dev
Closed

Mask network wait-online services to prevent boot delays#5896
reinierbutot wants to merge 2 commits into
basecamp:devfrom
reinierbutot:dev

Conversation

@reinierbutot
Copy link
Copy Markdown

Since DHH asked me to create a PR for this on X

Although it evolved and slimmed down from my original post, since the boot is already quite optimized.

Summary

This PR prevents some boot delays caused by systemd-networkd-wait-online and NetworkManager-wait-online services on some occasions.

Changes

  • Updated install/config/hardware/network.sh to always mask systemd-networkd-wait-online.service and guarded-mask NetworkManager-wait-online.service (when present).
  • Added a new migration (migrations/1779090175.sh) to safely apply the same change to existing Omarchy installations.

Why

These services wait for a network connection before marking the system as "online", which can cause timeouts on Wi-Fi systems or machines with flaky or unplugged interfaces.

Effect

  • Faster and more reliable boot times.
  • Guarded, so no impact on systems that don't have these services.
  • Applies cleanly to both fresh installs and existing ones.

Copilot AI review requested due to automatic review settings May 18, 2026 08:07
@dharmavagabond
Copy link
Copy Markdown

This proposal targets NetworkManager which still is in PR (#2909). Omarchy currently uses systemd-netword, so it won't be applied to new nor current installs.

@dhh
Copy link
Copy Markdown
Member

dhh commented May 19, 2026

Thanks for putting this together, Reinier — appreciate you turning the X thread into a PR.

Looking at it against dev, the systemd-networkd-wait-online mask is already in install/config/hardware/network.sh, so the meaningful new bit here is the NetworkManager-wait-online handling. The catch is that Omarchy uses systemd-networkd + iwd and doesn't ship NetworkManager — so the file guard falls through on every standard install, and the migration would just print "not present, skipping" for everyone.

I'd rather not carry defensive code with no current audience. If NetworkManager support lands (there's an open PR at #2909), the wait-online mask makes more sense as part of that change in one place.

Going to close this one, but thanks again for the contribution.

@dhh dhh closed this May 19, 2026
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.

3 participants