From f79e1c010b7fcc03f21912fd4eb1b5de8cd32b7b Mon Sep 17 00:00:00 2001 From: Martin Osvald Date: Thu, 8 Jan 2026 16:00:59 +0100 Subject: [PATCH] Create /var/lib/dhcpcd directory through systemd-tmpfiles Resolves: RHEL-111270 --- dhcpcd.spec | 3 +++ systemd-tmpfiles.conf | 1 + 2 files changed, 4 insertions(+) create mode 100644 systemd-tmpfiles.conf diff --git a/dhcpcd.spec b/dhcpcd.spec index 6cd9b14..6c34c68 100644 --- a/dhcpcd.spec +++ b/dhcpcd.spec @@ -14,6 +14,7 @@ Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xa785ed2755955d9 Source3: %{name}.service Source4: %{name}@.service Source5: systemd-sysusers.conf +Source6: systemd-tmpfiles.conf Patch1: dhcpcd-RHEL-72083.patch BuildRequires: gcc @@ -57,6 +58,7 @@ 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 -m 644 %{SOURCE6} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -d %{buildroot}%{_sharedstatedir}/%{_name} %pre @@ -88,6 +90,7 @@ install -d %{buildroot}%{_sharedstatedir}/%{_name} %{_mandir}/man8/%{name}.8.gz %{_sbindir}/%{name} %{_sysusersdir}/%{name}.conf +%{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %{_unitdir}/%{name}@.service %defattr(0644,root,dhcpcd,0755) diff --git a/systemd-tmpfiles.conf b/systemd-tmpfiles.conf new file mode 100644 index 0000000..a7f72fe --- /dev/null +++ b/systemd-tmpfiles.conf @@ -0,0 +1 @@ +d /var/lib/dhcpcd 0755 root dhcpcd -