Skip to content

Don't block graphical login on network.target - #19888

Merged
dhh merged 1 commit into
quattrofrom
boot-user-sessions
Nov 23, 2026
Merged

dhh merged 1 commit into
quattrofrom
boot-user-sessions

Conversation

@dhh

@dhh dhh commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What changes

  • Ship etc/systemd/system/systemd-user-sessions.service without network.target in After= (preserving remote-fs.target, nss-user-lookup.target, and home.mount).
  • Upstream orders systemd-user-sessions.service after network.target, which forces plymouth-quit.service and sddm.service to wait ~660–720ms on every boot for NetworkManager.service before starting the Wayland session.
  • Shipped as a full unit override rather than a drop-in because systemd does not allow clearing After= in a drop-in (systemd.unit(5)).

Verification

  • Verified with systemd-analyze --root=... verify against graphical.target, multi-user.target, sddm.service, systemd-user-sessions.service, NetworkManager.service, plymouth-quit.service, omarchy-provision-owner.service, and omarchy-provision-hardware.service: zero ordering cycles or errors, and network.target is removed from After= while sysinit.target, basic.target, remote-fs.target, nss-user-lookup.target, and home.mount remain.

Screenshots

No visible change: boot-time systemd unit ordering optimization only.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds a full override for systemd-user-sessions.service so login no longer waits for network.target.

  • Graphical login can start before network setup finishes.

Author dhh explicitly chose a full override because a drop-in cannot clear After=; that design choice is intentional.

Reviews (1) · Last reviewed commit: "Don't block graphical login on network.t..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

I checked the diff, PR discussion and CI results. GPT-6 High in Codex classified the unnecessary network dependency delaying local login as a bug; deepseek-v4p1-flash (effort not specified by the classifier) classified it as an enhancement. Classification remains unsettled, so no worker tests or full second-opinion code review ran. This is waiting on the maintainer to decide whether to treat it as a fix or a boot-time optimization.

@dhh
dhh merged commit 465247f into quattro Nov 23, 2026
2 checks passed
@dhh
dhh deleted the boot-user-sessions branch November 23, 2026 09:43
@emirb emirb added this to the 4.6.0 milestone Dec 1, 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