ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure
@ 2008-05-06 14:28 Michael Shigorin
  2008-05-08 17:36 ` Alexey I. Froloff
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2008-05-06 14:28 UTC (permalink / raw)
  To: sisyphus

	Здравствуйте.
Уже хочу rpm-divert :)

----- Forwarded message from Oliver Grawert <ogra/ubuntu.com> -----

Date: Mon, 28 Apr 2008 11:05:56 +0200
From: Oliver Grawert <ogra/ubuntu.com>
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 <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure
  2008-05-06 14:28 [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure Michael Shigorin
@ 2008-05-08 17:36 ` Alexey I. Froloff
  2008-05-09 10:28   ` Michael Shigorin
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey I. Froloff @ 2008-05-08 17:36 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 126 bytes --]

* Michael Shigorin <mike@> [080506 18:31]:
> Уже хочу rpm-divert :)
Зачем нам это костылищще?

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure
  2008-05-08 17:36 ` Alexey I. Froloff
@ 2008-05-09 10:28   ` Michael Shigorin
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Shigorin @ 2008-05-09 10:28 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

On Thu, May 08, 2008 at 09:36:21PM +0400, Alexey I. Froloff wrote:
> > Уже хочу rpm-divert :)
> Зачем нам это костылищще?

Чтоб была возможность понять/отследить, кто в чужие/ничьи конфиги
скриптами лазил.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-09 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 14:28 [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure Michael Shigorin
2008-05-08 17:36 ` Alexey I. Froloff
2008-05-09 10:28   ` Michael Shigorin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git