From add7dfc873dca84e3e2434ec1b15cf7019f4b1e0 Mon Sep 17 00:00:00 2001 From: Phoebus Date: Sun, 27 Sep 2026 12:28:14 -0700 Subject: [PATCH] fix(desktop): build seatd server for the systemd unit --- installer-rs/crates/phoebus-core/src/system.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/installer-rs/crates/phoebus-core/src/system.rs b/installer-rs/crates/phoebus-core/src/system.rs index b5316e2..8f5b955 100644 --- a/installer-rs/crates/phoebus-core/src/system.rs +++ b/installer-rs/crates/phoebus-core/src/system.rs @@ -1029,6 +1029,14 @@ pub fn package_use(config: &InstallConfig, hardware: &HardwareReport) -> String // a seat on physical hardware, VMs, and under the greeter alike. o.push_str("# Seat management (logind + seatd fallback)\n"); o.push_str("gui-libs/libseat systemd builtin server\n"); + // seatd itself must build the server (daemon + systemd unit + `seat` + // group): without `server` USE the package ships only the client + // library and `systemctl enable seatd` fails with "Unit + // seatd.service does not exist" (proven by VM install run 11). + // `systemd` selects the logind backend; `builtin` keeps the + // compiled fallback. elogind stays off (REQUIRED_USE allows at most + // one of elogind/systemd). + o.push_str("sys-auth/seatd server systemd builtin\n"); o.push_str("# Workstation defaults (Wayland-first, local printing, PipeWire audio)\n"); o.push_str("media-sound/cava pipewire\n"); o.push_str("net-p2p/transmission gtk\n"); @@ -2457,6 +2465,8 @@ mod tests { assert!(text.contains("media-video/pipewire sound-server systemd")); // Seat management: libseat speaks seatd, logind and builtin. assert!(text.contains("gui-libs/libseat systemd builtin server")); + // seatd ships its daemon + unit only with the server flag. + assert!(text.contains("sys-auth/seatd server systemd builtin")); // Headless has no seat stack. let mut headless = InstallConfig::default(); headless.desktop.profile = DesktopProfile::None;