From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] Fwd: Re: [Ltsp-developer] ltspfs bug? missing /etc/mtab failure
Date: Tue, 6 May 2008 17:28:06 +0300
Message-ID: <20080506142806.GH7483@osdn.org.ua> (raw)
Здравствуйте.
Уже хочу 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/
next reply other threads:[~2008-05-06 14:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 14:28 Michael Shigorin [this message]
2008-05-08 17:36 ` Alexey I. Froloff
2008-05-09 10:28 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080506142806.GH7483@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=shigorin@gmail.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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