Install sysusers.d config for user/groups#1512
Open
bluca wants to merge 2 commits intoOpenPrinting:masterfrom
Open
Install sysusers.d config for user/groups#1512bluca wants to merge 2 commits intoOpenPrinting:masterfrom
bluca wants to merge 2 commits intoOpenPrinting:masterfrom
Conversation
Ubuntu, debian and other distro create the cups user/groups in their packages. Add a sysusers.d config file and install it. This configuration file will create the configured system users/groups on first boot/factory reset/package installation, without requiring manual scripts or actions. This is very important for image-based OSes, but it is useful in other cases too, to allow using declarative configuration instead of scripts. https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html By default if the systemd.pc pkg-config file does not exist, this will be a no-op, so that it does not affect other OSes. If systemd.pc exists and contains the installation directory variable, or if it is specified manually in ./configure, then a sysusers.d config file is generated based on the configure user/groups and installed. Add separate files for the cups user/group and for the system groups, as they can be set independently.
aclocal && autoconf
Member
|
At first blush this looks good. Will do a more detailed review over the next several days... |
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.
Ubuntu, debian and other distro create the cups user/groups
in their packages.
Add a sysusers.d config file and install it. This configuration
file will create the configured system users/groups on first boot/factory
reset/package installation, without requiring manual scripts or actions.
This is very important for image-based OSes, but it is useful in other
cases too, to allow using declarative configuration instead of scripts.
https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
By default if the systemd.pc pkg-config file does not exist, this will
be a no-op, so that it does not affect other OSes.
If systemd.pc exists and contains the installation directory variable,
or if it is specified manually in ./configure, then a sysusers.d config
file is generated based on the configure user/groups and installed.
Add separate files for the cups user/group and for the system groups,
as they can be set independently.