README.md (1381B)
1 # Prototype: the login manager of ADR-0012 2 3 Throwaway code that proved the architecture on a VM. Nothing here ships. The real greeter will be 4 written in this repository (not in patina-desktop), and the polkit rule moves into the image. 5 6 - `proto-greeter-direct`: a scripted stand-in for the greeter. With no human account it makes the 7 first one through AccountsService (`CreateUser`, `SetPassword`), then logs it in through greetd's 8 protocol and starts `patina-session --session`. Its steps go to `/tmp/proto-direct.log`. 9 - `50-patina-first-user.rules`: the polkit rule that lets the greeter user administer accounts only 10 while no human account can log in (none exist, or all are locked). 11 12 The first design, a root helper service that made the account, was built and dropped: see the ADR, 13 and commit 99f1870 for its code. 14 15 ## Trying it on the test VM 16 17 The VM's `/usr` is read-only: make it writable for one boot with `bootc usroverlay`, and put 18 `proto-greeter-direct` in `/usr/libexec` (`restorecon` it). The rule goes in 19 `/etc/polkit-1/rules.d/`. greetd, `gtkgreet` and `cage` come from `rpm-ostree install`; GDM is 20 disabled and greetd enabled; `/etc/greetd/config.toml`'s `default_session.command` is 21 `/usr/libexec/proto-greeter-direct`. SELinux stays enforcing. If greetd gives up after repeated 22 greeter failures, `systemctl reset-failed greetd` before starting it again.