Skip to content

fix: fix target to remove cycle present in ubuntu 26.04 gdm3. Fixes …#11

Merged
kgilmer merged 2 commits intomasterfrom
fix/systemd-dep-cycle
Apr 29, 2026
Merged

fix: fix target to remove cycle present in ubuntu 26.04 gdm3. Fixes …#11
kgilmer merged 2 commits intomasterfrom
fix/systemd-dep-cycle

Conversation

@kgilmer
Copy link
Copy Markdown
Member

@kgilmer kgilmer commented Apr 25, 2026

…gdm3 breaking when regolith is installed

RCA'd with claude.

Verified fix on local install by manually editing files and seeing that gdm3 screen loads upon reboot. Before fix gdm3 does not load.

Summary: Regolith Sway session units break GDM3 greeter on Ubuntu 26.04
Installing regolith-session-sway prevents the GDM3 greeter from displaying. GDM retries the greeter 7 times then gives up, leaving the user at a text-mode cursor.
Root cause: Two services — sway-audio-idle-inhibit.service and trawld.service — ship with WantedBy=default.target in their [Install] sections. This causes graphical-session.target to be activated during the GDM greeter user's systemd startup (before gnome-shell has launched), because these services depend on it for ordering. When gnome-session then runs, it sees graphical-session.target already active, logs "A graphical session is already running!", and exits. No GNOME Shell starts, GDM's display never gets a session registration, and the greeter fails.
Additionally, foot-server.socket (pulled in as a dependency of foot) uses WantedBy=sockets.target combined with After=graphical-session.target, which creates a dependency cycle that compounds the same problem.
Fix: All three units should use WantedBy=graphical-session.target (not default.target or sockets.target). This ensures they only activate when a compositor has started a graphical session, and keeps them out of the GDM greeter's startup path. For foot-server.socket, which is owned by the foot package, the fix should be shipped as a drop-in override or handled via postinst symlink management in regolith-session-sway.

@kgilmer kgilmer force-pushed the fix/systemd-dep-cycle branch from 9bac71d to eb3906b Compare April 25, 2026 20:33
@kgilmer kgilmer merged commit 324f003 into master Apr 29, 2026
7 checks passed
@kgilmer kgilmer deleted the fix/systemd-dep-cycle branch April 29, 2026 01:37
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.

1 participant