You are not logged in.
Hi,
Per the suggestion on the systemd wiki page, I have instructed systemd (via /etc/fstab) to automount /home. This is supposed to allow me to boot faster on those occasions when my /home needs to be fsck'ed. (Please correct me if I've misunderstood this point.) This results in "mount" reporting that my /home filesystem type is "autofs".
This again results in locate ignoring my entire /home when indexing my harddisk, since the default /etc/updatedb.conf has PRUNEFS="(...) autofs (...)", i.e. it ignores all autofs filesystems. Now, I don't want to remove autofs from this list, since other filesystems that should be ignored (e.g. /proc/sys/fs/binfmt_misc) are of autofs type. I also would prefer to keep the automount trick from the wiki.
Any suggestions as to how this can be accomplished? I have RTFM for updatedb.conf, and it does not have a "whitelist" of any sort. That would be the optimal solution, IMO, but requires an update from the mlocate maintainer upstream. Can I tell systemd to fake the filesystem type of home, or to pass on the actual filesystem type (ext4)?
Offline
I've had the same:
https://bbs.archlinux.org/viewtopic.php?id=148772
I've got rid of the autofs directive in prunefs.
Until the 'bug' is fixed, you could do that too and use PRUNEPATHS array instead.
Last edited by kokoko3k (2012-12-18 13:26:15)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Ah, I searched for earlier posts before I wrote mine, but I did not see that one. Since your earlier post had no responses, I will have a quick look at the mlocate source to see if I can't implement a whitelist in updatedb.conf. I will make sure to reply here again if I have any success.
Offline
Here is another discussion of this issue: https://bbs.archlinux.org/viewtopic.php?id=154539
Apparently the time savings provided by automounting /home may not be not significant enough to make it worthwhile. You can test this yourself, or continue with the other workarounds you are already aware of.
Offline