-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command 'locate' doesn't work #76
Comments
Running Silverblue 33 here: $ locate fstab Is it still na issue on Silverblue 32? |
I haven't updated the last version on Silverblue 32, but I've been tracking the package at Fedora and they could you do the same with a file at Fedora and they haven't change the package. |
@juanje I can confirm that locating files in HOME doesn't work. After doing the steps that you mention in the first comment, then it does work. Also I noticed the we should prune the /sysroot/ostree/deploy directory so we don't have the duplicates. eg:
So the change for the mlocate should look like this:
but I would like to have this fixed for CoreOS as well. @cgwalters @dustymabe do we have a common way to identify ostree based system inside SPEC files? As %post is run on the server, the |
The only interesting directories to index on ostree-based systems are |
Colin wrote me on IRC that the check for |
We do populate |
This seems to be already in the RedHat's Bugzilla (for quite some time): |
I forget to add here that I've created: https://src.fedoraproject.org/rpms/mlocate/pull-request/3 (rawhide) |
This was fixed in rawhide with https://bodhi.fedoraproject.org/updates/FEDORA-2020-289e9daae3 the F33 does have a build, but no update yet and for F32, there's no build yet. |
This was fixed everywhere. |
The command
locate
is very useful to find files from the terminal, but I realized that at Silverblue it doesn't work. I tried at Fedora SIlverblue 32, but I guess the issue might be happening in other versions.The command is installed by default at Silverblue with the packages mlocate, so it should work.
How to reproduce the issue
You can test it by running:
It won't return anything. I should return, at least,
/etc/fstab
, but it returns nothing.The problem
I investigated a bit and I found the issue. At the
updatedb
configuration (the command that update thelocate
database),/etc/updatedb.conf
the bind mounts are disabled:At the Fedora Workstation is OK to disable those type of mounts, but at Fedora Silverblue it doesn't work. But if you comment that line or change the value to
no
, then theupdatedb
and thelocate
commands work again.Steps to make it work
mlocate
database:locate
:It should give you the expected output now. Afterwards, the database will update by itself each day, the package installs a systemd unit timer that takes care of that.
Solution
I'm not sure if Fedora Silverblue has its own versions of the packages, if this could be changed after the package is already installed or how is the best way to manage this type of differences with the Workstation version.
Maybe it's not essential configuration for Fedora Workstation and can be changed upstream.
The text was updated successfully, but these errors were encountered: