[Bugs] [Bug 1598900] tmpfiles snippet tries to create folder owned by nonexistent user

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 22 08:02:03 UTC 2019


https://bugzilla.redhat.com/show_bug.cgi?id=1598900

Niels de Vos <ndevos at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(ndevos at redhat.com |
                   |)                           |



--- Comment #7 from Niels de Vos <ndevos at redhat.com> ---
Wow, sorry that this took so long to reply. I only received an email from
Bugzilla with list of NEEDINFOs on me today!?

>From /usr/lib/rpm/macros.d/macros.systemd:
# This should be used by package installation scripts which require users or
# groups to be present before the files installed by the package are present on
# disk (for example because some files are owned by those users or groups).
#
# Example:
#   Source1: %{name}-sysusers.conf
#   ...
#   %install
#   install -D %SOURCE1 %{buildroot}%{_sysusersdir}/%{name}.conf
#   %pre
#   %sysusers_create_package %{name} %SOURCE1
#   %files
#   %{_sysusersdir}/%{name}.conf

Together with sysusers.d(5) this is pretty well explained.
There are a few packages in Fedora that place files under /usr/lib/sysusers.d,
so that is not prohibited and glusterfs could use that as well. It does not
seem to be part of CentOS-7 though, so the older method of creating the
user/group is still needed.

I do not have any objection to adding a sysusers.d snippet :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Bugs mailing list