From 755741ca0ff7af5a7153487a5b3d1134790be2c6 Mon Sep 17 00:00:00 2001 From: Martin Osvald Date: Tue, 23 Sep 2025 11:10:43 +0200 Subject: [PATCH] Install sysusers.d config Resolves: RHEL-111270 --- dhcpcd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dhcpcd.spec b/dhcpcd.spec index c1e1a6b..6cd9b14 100644 --- a/dhcpcd.spec +++ b/dhcpcd.spec @@ -29,6 +29,8 @@ BuildRequires: make BuildRequires: gnupg2 %endif %{?systemd_requires} +%{?sysusers_requires_compat} + %description The dhcpcd package provides a minimalistic network configuration daemon that supports IPv4 and IPv6 configuration including configuration discovery @@ -54,6 +56,7 @@ export BINMODE=755 find %{buildroot} -name '*.la' -delete -print install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}@.service +install -D -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}.conf install -d %{buildroot}%{_sharedstatedir}/%{_name} %pre @@ -84,6 +87,7 @@ install -d %{buildroot}%{_sharedstatedir}/%{_name} %{_mandir}/man8/%{name}-run-hooks.8.gz %{_mandir}/man8/%{name}.8.gz %{_sbindir}/%{name} +%{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %{_unitdir}/%{name}@.service %defattr(0644,root,dhcpcd,0755)