Skip to content

Install and use sysusers.d/tmpfiles.d config files#714

Merged
narc-Ontakac2 merged 1 commit into
volkszaehler:debianfrom
bluca:sysusers
Jul 18, 2026
Merged

Install and use sysusers.d/tmpfiles.d config files#714
narc-Ontakac2 merged 1 commit into
volkszaehler:debianfrom
bluca:sysusers

Conversation

@bluca

@bluca bluca commented Jul 14, 2026

Copy link
Copy Markdown

sysusers.d/tmpfiles.d config files allow a package to use declarative
configuration instead of manually written maintainer scripts. This also
allows image-based systems to be created with /usr/ only, and also
allows for factory resetting a system and recreating /etc/ on boot.

https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html

Note that this does not require a hard dependency on systemd,
debhelper generates depetencies correctly so that they work out
of the box on non-systemd and non-linux Debian builds seamlessly.

sysusers.d/tmpfiles.d config files allow a package to use declarative
configuration instead of manually written maintainer scripts. This also
allows image-based systems to be created with /usr/ only, and also
allows for factory resetting a system and recreating /etc/ on boot.

https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html

Note that this does not require a hard dependency on systemd,
debhelper generates depetencies correctly so that they work out
of the box on non-systemd and non-linux Debian builds seamlessly.
@r00t-

r00t- commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

LGTM,
but i guess something for @narc-Ontakac2 to look at?

@narc-Ontakac2

Copy link
Copy Markdown
Collaborator

Does sysusers.d/tmpfiles.d itself work without systemd? In our case - is the _vzlogger user created on non-systemd systems?

@bluca

bluca commented Jul 16, 2026

Copy link
Copy Markdown
Author

Does sysusers.d/tmpfiles.d itself work without systemd? In our case - is the _vzlogger user created on non-systemd systems?

Yes, please see the PR description text

@narc-Ontakac2
narc-Ontakac2 merged commit 6a6fdca into volkszaehler:debian Jul 18, 2026
2 checks passed
@bluca
bluca deleted the sysusers branch July 18, 2026 10:41
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