Skip to content

Conversation

@mobileoverlord
Copy link
Contributor

@mobileoverlord mobileoverlord commented Aug 14, 2025

systemd-sysusers offers a composable way for system users and groups to be managed by include files instead of packages trying to mutate single file databases like /etc/passwd with scriptlets. Yocto doesn't have built in support for generating these files from recipes, but they do have a mechanism for accumulating user and group account additions to munge the passwd/group files before imaging the system via USERADD/GROUPADD. Since these directives are already present in yocto, hooking in to this system give us the information we need. This adds a global class which hooks into this process and automatically generates sysuser.d conf files and adds them to their respective package. This is a big win because it means that packages can influence the user/groups at runtime without clobbering each other.

@mobileoverlord
Copy link
Contributor Author

depends on avocado-linux/avocado-control#3 and rebasing the avocadoctl changes
depends on avocado-linux/avocado-cli#23

@mobileoverlord mobileoverlord force-pushed the jschneck/sysusers branch 3 times, most recently from 5a2f8c3 to 932f688 Compare August 14, 2025 19:50
@mobileoverlord mobileoverlord merged commit 300a11e into scarthgap Aug 14, 2025
@mobileoverlord mobileoverlord deleted the jschneck/sysusers branch August 14, 2025 19:52
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.

3 participants