diff --git a/util-linux.spec b/util-linux.spec index b09fbd5..2798a30 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -274,7 +274,6 @@ See also the "uuid-devel" package, which is a separate implementation. Summary: Helper daemon to guarantee uniqueness of time-based UUIDs Requires: libuuid = %{version}-%{release} License: GPL-2.0-only -Requires(pre): shadow-utils %{?systemd_ordering} %description -n uuidd @@ -314,6 +313,11 @@ The utilities scripts, scriptreplay, and scriptlive are used to create and repla %prep %autosetup -p1 -n %{name}-%{upstream_version} +# Create a sysusers.d config file +cat >util-linux.sysusers.conf </dev/null || groupadd -r uuidd -getent passwd uuidd >/dev/null || \ -useradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \ - -c "UUID generator helper daemon" uuidd -exit 0 - # Please, keep uuidd running after installation! Note that systemd_post is # "systemctl preset" and it enable/disable service only. %post -n uuidd @@ -899,6 +899,7 @@ fi %{compldir}/uuidd %{_tmpfilesdir}/uuidd-tmpfiles.conf %{_sysusersdir}/uuidd.conf +%{_sysusersdir}/util-linux.conf %files -n libfdisk