diff --git a/SOURCES/initscripts-9.49.53-Allow-updating-mlocate.db.patch b/SOURCES/initscripts-9.49.53-Allow-updating-mlocate.db.patch new file mode 100644 index 0000000..281105f --- /dev/null +++ b/SOURCES/initscripts-9.49.53-Allow-updating-mlocate.db.patch @@ -0,0 +1,29 @@ +From 280ad90593581b3fcbda9595a4c3d37f37a7c761 Mon Sep 17 00:00:00 2001 +From: Jan Macku +Date: Tue, 13 Oct 2020 14:19:29 +0200 +Subject: [PATCH 1/2] Allow updating mlocate.db while in readonly root mode + +Fixes issue when updatedb does not have the ability to update the mlocate.db + +Resolves: #1880095 + +(cherry picked from commit c59a7612bac9b9d0c2b55eb9a251bb43690220b0) +--- + rwtab | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rwtab b/rwtab +index 2254aaca..609085c1 100644 +--- a/rwtab ++++ b/rwtab +@@ -4,6 +4,7 @@ dirs /var/lib/xkb + dirs /var/log + dirs /var/lib/puppet + dirs /var/lib/dbus ++dirs /var/lib/mlocate + + empty /tmp + empty /var/cache/foomatic +-- +2.25.4 + diff --git a/SPECS/initscripts.spec b/SPECS/initscripts.spec index 1d336f4..8724f90 100644 --- a/SPECS/initscripts.spec +++ b/SPECS/initscripts.spec @@ -4,7 +4,7 @@ Version: 9.49.53 # ppp-watch is GPLv2+, everything else is GPLv2 License: GPLv2 and GPLv2+ Group: System Environment/Base -Release: 1%{?dist} +Release: 1%{?dist}.1 URL: https://github.com/fedora-sysv/initscripts Source: https://github.com/fedora-sysv/initscripts/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -37,6 +37,8 @@ Requires(preun): /sbin/chkconfig BuildRequires: glib2-devel popt-devel gettext pkgconfig systemd Provides: /sbin/service +Patch001: initscripts-9.49.53-Allow-updating-mlocate.db.patch + %description The initscripts package contains basic system scripts used during a boot of the system. It also contains scripts which @@ -55,6 +57,7 @@ Currently, this consists of various memory checking code. %prep %setup -q +%patch001 -p1 %build make @@ -221,6 +224,9 @@ rm -rf $RPM_BUILD_ROOT /etc/profile.d/debug* %changelog +* Tue Oct 13 2020 Jan Macku - 9.49.53-1.el7_9.1 +- rwtab: Allow updating mlocate.db (bug #1880095) + * Fri May 22 2020 Jan Macku - 9.49.53-1 - rwtab: Add support for chrony (bug #1838260)