From 576171118977ea16da5c53e5b91acd1a380e74d1 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 8 Oct 2018 20:52:42 +0300 Subject: [PATCH] Remove *.leases files from packages: they can be created automatically if the directory exists. Directories are created by %post scripts. Don't remove *.leases no packages uninstallation. --- ROSA-NEWS | 3 +++ dhcp.spec | 13 +------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/ROSA-NEWS b/ROSA-NEWS index ab9c85f..8c7f2a9 100644 --- a/ROSA-NEWS +++ b/ROSA-NEWS @@ -24,6 +24,9 @@ let's use /etc/sysconfig/dhcpd for both IPv4 and IPv6 * /var/lib/dhcpd and /var/lib/dhclient are now defined as variables in the RPM spec Note: they are hardcoded in systemd units +* .leases files are not packaged any more, because modern dhcpd and dhclient can create them automatically, +but the directoiry, e.g. /var/lib/dhclient, has to exist and be writable. + * TODO(?): Fedora's patch dhcp-paths.patch * TODO: should we ship a separate config of systemd tmpfiles for '/run/dhcpd'? Probable no, it's created automatically (https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Sandboxing) diff --git a/dhcp.spec b/dhcp.spec index cfbb399..189bab6 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -234,11 +234,6 @@ cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd < %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <