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 1260546 - locate command can't search files under /mnt directory
Summary: locate command can't search files under /mnt directory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mlocate
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-07 08:33 UTC by Li Shuang
Modified: 2015-09-08 13:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-08 13:53:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Li Shuang 2015-09-07 08:33:58 UTC
Description of problem:
After I create some files/folders under /mnt directory, I can't find them using locate command.

Version-Release number of selected component (if applicable):
# rpm -q mlocate
mlocate-0.26-5.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a file/folder under /mnt directory
# touch aaa/mkdir bbb
2. execute updatedb command
# updatedb
3. execute locate command to search the file/folder
# locate aaa/locate bbb

Actual results:
locate command can't search the file/folder

Expected results:
locate command can search the file/folder

Additional info:
1. The result is OK when mlocate version is as follows:
# rpm -q mlocate
mlocate-0.22.2-6.el6.x86_64
2. When I search some files/folders under some other directories(such as /root) using locate command(version:mlocate-0.26-5.el7.x86_64), the result is OK.

Comment 3 Ondrej Vasik 2015-09-08 13:53:11 UTC
If you check your /etc/updatedb.conf file, you can find /mnt and /media in PRUNEPATHS variable - they are skipped intentionally. You can modify the .conf file, but generally it is not a good default. Closing NOTABUG, as this is not a regression, but expected behaviour of PRUNEPATHS variable.


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