RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1880095 - With readonly rootfs updatedb does not have access to mlocate.db [rhel-7.9.z]
Summary: With readonly rootfs updatedb does not have access to mlocate.db [rhel-7.9.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: initscripts
Version: 7.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jan Macku
QA Contact: Daniel Rusek
URL:
Whiteboard:
Depends On:
Blocks: 1880277
TreeView+ depends on / blocked
 
Reported: 2020-09-17 16:28 UTC by Ryan Mullett
Modified: 2023-12-15 19:24 UTC (History)
5 users (show)

Fixed In Version: initscripts-9.49.53-1.el7_9.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1880277 (view as bug list)
Environment:
Last Closed: 2020-11-10 13:12:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5037 0 None None None 2020-11-10 13:12:22 UTC

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


Note You need to log in before you can comment on or make changes to this bug.