You are not logged in.

#1 2012-12-18 12:33:41

AsmundEr
Member
From: Trondheim, Norway
Registered: 2010-05-07
Posts: 15

Systemd automount of /home results in locate ignoring /home

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

#2 2012-12-18 13:25:00

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: Systemd automount of /home results in locate ignoring /home

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

#3 2012-12-18 13:30:06

AsmundEr
Member
From: Trondheim, Norway
Registered: 2010-05-07
Posts: 15

Re: Systemd automount of /home results in locate ignoring /home

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

#4 2012-12-18 13:36:08

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Systemd automount of /home results in locate ignoring /home

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

Board footer

Powered by FluxBB