Skip to content

feat(contract): an app's sysusers.d entry declares user lodge - #41

Merged
bketelsen merged 1 commit into
mainfrom
irulan/sysusers-user-lodge
Oct 28, 2026
Merged

bketelsen merged 1 commit into
mainfrom
irulan/sysusers-user-lodge

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

The kit's lodgeapp.LoadEnv looks up user lodge. On a host with an app's sysext but not lodge's, the user does not exist and the daemon loops with unknown user lodge (maild, notesd, readd and porterd alike). Brian decided (snosi T401a, 2026-10-28) that each suite sysext declares the user, with no feature dependency.

  • docs/specs/app-contract.md: each app's sysusers.d entry also declares user lodge, with a line identical to packaging/sysusers.d/lodge.conf. Different lines make systemd-sysusers warn and keep the first.
  • packaging/sysusers.d/lodge.conf: a comment only; the u lodge line is unchanged.
  • packaging/app-template/example.sysusers.conf and the new-lodge-app template append the line.
  • internal/packagecheck and internal/scaffoldcheck read the u lodge line from lodge.conf and fail when the example or the rendered scaffold lacks it byte for byte.

Apps: frostyard/frostnotes#113, frostyard/frostmail#134, frostyard/frostread#26, frostyard/porter#22. Checked with systemd-sysusers 262 --root --dry-run on all 5 entries together: no warning. make check passes.

The kit's lodgeapp.LoadEnv looks up user lodge, so an app's daemon needs it without lodge's sysext (snosi T401a). Each app repeats lodge's u lodge line byte for byte; the example, the scaffold template and their checks follow.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 28, 2026
@bketelsen
bketelsen merged commit e76a17c into main Oct 28, 2026
7 checks passed
@bketelsen
bketelsen deleted the irulan/sysusers-user-lodge branch October 28, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants