omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Edge to rc switch leaves greetd without its omarchy-login PAM service

Open maralcbr opened this issue 1 week ago • 2 comments

Switching a machine from edge to rc leaves it without a login screen. greetd fails at boot with:

greetd: error: PAM 'omarchy-login' service missing
greetd.service: Failed with result 'start-limit-hit'.

Cause

The channels disagree on the display manager:

  • Edge replaced SDDM with greetd (omarchy#20404). omarchy-system-login writes /etc/greetd/config.toml with service = "omarchy-login". /etc/pam.d/omarchy-login is shipped by omarchy-settings-dev.
  • rc has omarchy-settings 4.6.0rc1-2, which predates #20404 and has no /etc/pam.d/omarchy-login.

omarchy-channel-set rc replaces omarchy-settings-dev with omarchy-settings, which removes the PAM file. /etc/greetd/config.toml stays: it's greetd's backup file and was modified. greetd stays enabled, so on the next boot it names a missing PAM service and exits. Nothing in the rc package set rewrites the config or goes back to SDDM.

Nothing in this is specific to one platform, so it should hit x86_64 as well. I reproduced it on aarch64.

Reproduce

  1. Start from a machine on edge with omarchy-dev 4.0.0.r8595 or later, where greetd is the login screen.
  2. Run omarchy-channel-set rc. It completes with exit 0.
  3. Reboot: greetd fails and no login screen appears.

Seen on an Apple Silicon Mac (m4pro14), 2026-11-29, while running the gate checks for omarchy#19261. That PR doesn't cause it.

Recovery

omarchy-channel-set edge reinstalls omarchy-settings-dev and the PAM file. greetd starts again after a reboot.

Possible fixes

  • Promote it: promote #20404 to rc, so both channels ship the PAM service. This is the actual fix, and it removes the skew.
  • Channel switch repair: have omarchy-channel-set, or an rc-side check, rerun omarchy-system-login or fall back to SDDM when /etc/greetd/config.toml names a PAM service that isn't installed.
  • Package the PAM service: ship /etc/pam.d/omarchy-login from a package both channels carry.

maralcbr avatar Nov 29 '26 10:11 maralcbr

Codex High checked the channel switch and the published aarch64 and x86_64 package lists. RC 4.6.0rc1-2 leaves greetd enabled with its Edge configuration while dropping the omarchy-login PAM service and the greeter and session programs that configuration references. The reboot failure was observed on the reporter’s Apple Silicon machine.

Opus 5.5 High and muse-wonder via pi, thinking high checked the source. Opus flagged the additional greetd-greeter PAM file, which the RC settings package also lacks. Muse Wonder found that the initial Quattro upgrade has an SDDM fallback that the channel switch lacks. Restoring SDDM on downgrade would also need to handle the return upgrade because the greetd migration stays marked complete.

This is with the maintainers for the RC release decision. Shipping the matching login stack and dependencies from #20404 in RC would address this switch. The manual downgrade to Stable is tracked in #20717.

omarchybot avatar Nov 29 '26 11:11 omarchybot

I have a local fix for the channel-switch half, but both bot comments leave the approach to you, so asking first. After the package swap, omarchy-channel-set would check whether greetd is enabled while the PAM service or greeter its config names is gone. If so, and SDDM is installed, it re-enables SDDM, disables greetd and clears migration 1795834060's markers, so a later switch back to edge moves to greetd again. Fixture tests cover rc, stable, a missing greeter, keeping a working greetd and having no SDDM; nothing has run on a real machine yet. It doesn't help a manual pacman -Suu (#20717). Is this wanted, or will rc ship greetd instead?

aholbreich avatar Nov 30 '26 01:11 aholbreich