Menu

#31 mount.shfs exits before establishing a filesystem

open
nobody
None
5
2004-12-07
2004-12-07
No

I maintain a network of diskless workstations utilizing
shfs (mounting home dirs for users).
Login script launches user's session after mount.shfs,
something like this:

mount.shfs -p filip@shodan /home/filip -o
uid=filip,gid=filip
su - filip xsession

The problem is that mount.shfs returns before files in
/home/filip are accessible, resulting in a pretty big mess.

My solution for now is:

mount.shfs -p filip@shodan /home/filip -o
uid=filip,gid=filip
#run as root
while [ -O /home/filip ]; do sleep 1 ; done
su - filip xsession

Of course, this is ugly :).

What do you think about it?
Is it a bug or a feature :)?

bye,
Filip

Discussion


Log in to post a comment.

MongoDB Logo MongoDB