Bug 1880095

Summary: With readonly rootfs updatedb does not have access to mlocate.db [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Ryan Mullett <rmullett>
Component: initscriptsAssignee: Jan Macku <jamacku>
Status: CLOSED ERRATA QA Contact: Daniel Rusek <drusek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.8CC: fkrska, initscripts-maint-list, jreznik, lnykryn, msekleta
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: initscripts-9.49.53-1.el7_9.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1880277 (view as bug list) Environment:
Last Closed: 2020-11-10 13:12:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1880277    

Description Ryan Mullett 2020-09-17 16:28:30 UTC
Description of problem:
With a readonly rootfs updatedb does not have the ability to update the mlocate.db

Version-Release number of selected component (if applicable):
initscripts-9.49.49-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Use a readonly rootfs

Actual results:
updatedeb is unable to access mlocate.db with a readonly rootfs. The fix will be to add /var/lib/mlocate into rwtab configuration

Expected results:
updatedb should be able to access mlocate.db with a readonly rootfs.

Additional info:
This has been fixed on test systems by adding the following line to /etc/rwtab.d/mlocate:

dirs /var/lib/mlocate

However I assume that adding it to normal configuration is also acceptable and should result in mlocate.db being accessible.

Comment 3 Jan Macku 2020-09-22 14:18:56 UTC
Hi Ryan,
the issue is currently fixed in upstream and is going to be resolved in future RHEL7 Z-stream.

upstream PR: https://github.com/fedora-sysv/initscripts/pull/343

Comment 11 errata-xmlrpc 2020-11-10 13:12:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (initscripts bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5037