From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Date: Tue, 6 May 2008 17:28:06 +0300 From: Michael Shigorin To: sisyphus@lists.altlinux.org Message-ID: <20080506142806.GH7483@osdn.org.ua> Mail-Followup-To: sisyphus@lists.altlinux.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i Subject: [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2008 14:28:08 -0000 Archived-At: List-Archive: List-Post: Здравствуйте. Уже хочу rpm-divert :) ----- Forwarded message from Oliver Grawert ----- Date: Mon, 28 Apr 2008 11:05:56 +0200 From: Oliver Grawert To: ltsp-developer/lists.sourceforge.net Subject: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure hi, Am Montag, den 28.04.2008, 00:11 -0400 schrieb Warren Togami: > > 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? thats how we do it since day one (a grep -r in the plugin dir helps a lot): ogra/ceron:~/devel/hardy-ltsp/ltsp-trunk$ cat server/plugins/ltsp-build-client/Ubuntu/010-etc-mtab case "$MODE" in after-install) # divert /etc/mtab and point it to /proc/mounts chroot $ROOT dpkg-divert --package ltsp-client --add --rename \ --divert /etc/mtab.real /etc/mtab chroot $ROOT ln -sf /proc/mounts /etc/mtab ;; esac the divert moves the file out of the way (in case a package will claim it dpkg-divert makes sure such a package doesnt touch it (i.e. on updates)) and then we simply link /proc/mounts to be mtab. mind you, if you have apps that actually rely on the format of mtab which is slightly different to /proc/mounts you are screwed (we dont have such apps in the client chroots usually, but if you ever want to run something like gvfs on a client, which apparently massively relies on such things like fstab, mtab etc, then you will run into probs) ciao oli _____________________________________________________________________ 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 ----- End forwarded message ----- -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/