Repository navigation
feat(contract): an app's sysusers.d entry declares user lodge - #41
Merged
Merged
Conversation
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.
bketelsen
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The kit's
lodgeapp.LoadEnvlooks up userlodge. On a host with an app's sysext but not lodge's, the user does not exist and the daemon loops withunknown 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 userlodge, with a line identical topackaging/sysusers.d/lodge.conf. Different lines makesystemd-sysuserswarn and keep the first.packaging/sysusers.d/lodge.conf: a comment only; theu lodgeline is unchanged.packaging/app-template/example.sysusers.confand the new-lodge-app template append the line.internal/packagecheckandinternal/scaffoldcheckread theu lodgeline fromlodge.confand 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-sysusers262--root --dry-runon all 5 entries together: no warning.make checkpasses.