ltspfs bug? missing /etc/mtab failure

Warren Togami <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
I finally tracked down the cause of a ltspfs failure on Fedora.

I noticed that immediately after I install a fresh /opt/ltsp/i386 ltspfs 
would behave in a strange way.  /media/username/usbdisk-sdb1 would 
appear on the client's desktop, but it would be empty.  On the thin 
client I see /var/run/devices/usbdisk-sdb1 but nothing is mounted there.

It turns out that /etc/mtab is completely absent after a chroot install, 
and it cannot be written during client boot due to the read-only 
filesystem.  It seems that ltspfsd fails to mount anything if /etc/mtab 
is missing.

Workaround: touch /opt/ltsp/i386/etc/mtab

A blank read-only /etc/mtab is enough to make it work!

Anyhow, I believe this is a bug in ltspfsd because it really doesn't 
need any information in /etc/mtab.  /proc/mounts is often more accurate 
anyway if it really does need any info.

Thoughts?

Warren Togami
[email protected]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.