Skip to content

tools/aurora-sep: drop the login screen refresh unit - #2381

Closed
RyanTheTide wants to merge 1 commit into
mainfrom
bootrace/sep-greeter-no-refresh
Closed

RyanTheTide wants to merge 1 commit into
mainfrom
bootrace/sep-greeter-no-refresh

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

aurora-sep-greeter-refresh.service (added in a062512) restarts gdm once Touch ID comes up, a few seconds after the login screen appears. Anyone typing their password at that moment loses it along with the login screen. Restarting the display manager to pick up a late device is also the kind of retry this tree avoids.

Change

Drop the refresh unit, the script's refresh mode and their Fedora/Arch packaging. Keep the ordering from a062512: the greeter unit does not wait for aurora-sep-ready.

The login screen right after boot needs no fingerprint. As on macOS, which offers Touch ID only after one password login since the restart, aurora-sep keeps require_password_after_boot = yes, so that login screen takes the password anyway. Later login screens (after a log out) and the lock screen find the reader once it is up. The unit comment and README say so.

Testing

Still to run

The hardware rows of those three PRs (J616s first): gdm starts before aurora-sep-ready.service finishes, the boot login screen takes the password, and after a log out the next login screen offers the fingerprint.

Why the ordering matters

J616s, Fedora 45, with the greeter unit enabled: gdm started at 11.51 s after kernel start, its critical chain aurora-sep-greeter-fingerprint <- aurora-sep-ready (+0.31 s) <- aurora-sep.service (+4.17 s). The distribution copies still had the pre-a06251263367 unit.

aurora-sep-greeter-refresh.service restarted gdm once Touch ID came up,
seconds after the login screen appeared, so a password being typed at
that moment was lost with the login screen. The login screen right
after boot needs no fingerprint: as on macOS, where Touch ID is offered
only after one password login since the restart, aurora-sep keeps
require_password_after_boot = yes, so that login screen takes the
password anyway. Later login screens (after a log out) and the lock
screen find the reader once it is up.

Keep the ordering from a062512 (the greeter unit does not wait for
aurora-sep-ready) and drop the refresh unit, the script's refresh mode
and their packaging.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 1.

  1. tools/aurora-sep/aurora-sep-greeter-fingerprint:28-29: the script no longer handles refresh, so that argument now runs the full setup path. It starts with rm -rf "$out" "$dropin", then rebuilds the overlay. The README told hand installs to copy aurora-sep-greeter-refresh.service into /etc/systemd/system, and Also= enabled it into gdm.service.wants. Removing the file from the tree doesn't remove those copies. After an update, they still run aurora-sep-greeter-fingerprint refresh once gdm is up, which deletes and rewrites the overlay the running greeter is serving. Make the script refuse any argument other than empty or stop (exit 0 with a log line that says to remove the old unit). In the README, tell people who installed by hand to run systemctl disable --now aurora-sep-greeter-refresh.service and remove the file. On the packaged side, a systemctl disable of the old unit in the upgrade scriptlet (or a %triggerun) avoids a dangling gdm.service.wants link.
  2. Nit: require_password_after_boot isn't in this tree. It lives in aurora-touchid-rearm's touchid.conf, and sbio.rs enforces "waits for the first password since this boot". The unit comment (:5-9) and README (:359-361) say "aurora-sep keeps" it; name where it actually comes from so a reader can check it.

The ordering change is fine: the greeter unit has no After=/Requires= on aurora-sep-ready, and the Arch source and sha lists stay paired (23/23).

HW row: the J616s timing table used automatic login, so no boot ran through the greeter. On J616s with automatic login off: the boot login screen comes up before aurora-sep-ready, takes the password, and isn't restarted; after a log out, the next login screen offers fingerprint and a fingerprint login works; the lock screen offers fingerprint. Also 0 AVC, 0 failed units.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The login screen refresh unit and the script's refresh mode are still on integration/aurora (4a17f73), and this branch merges onto that tip without conflicts. Still open from the review: the script should refuse any argument other than empty or stop, so a leftover hand-installed refresh unit cannot rebuild the overlay under a running greeter, and the README and package scriptlets should disable the old unit. The hardware row still to run is J616s with automatic login off: boot login screen up before aurora-sep-ready and not restarted, fingerprint offered after a log out and on the lock screen.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Folded into #2464, which now carries this PR's commits unchanged (merge commit); review continues there.

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