package: debian-reference
Version: 2.31
Severity: normal

Hi,

It seems chroot section of debian-reference needs to be updated in line
with the current Debian.  I keep this in BTS to note this needs updates.

Any tested solutions in short format to replace existing documentation
are welcome.

On Fri, May 29, 2009 at 08:22:12PM +0200, Bart Martens wrote:
> Hello Osamu,
> 
> Thanks for the wonderful document "debian-reference" !  I have a
> question about the part about "chroot".

You are so kind use word "question".  But this is really bugs in an
outdated documentation and inconsistent/sloppy updates.  Excuse me not
testing contents regulary.

> http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot-debian

I am in process of updating Debian web page with new contents from
updated package.   It is a long story ... so just see my latest build here:
 http://people.debian.org/~osamu/pub/po4a/html/index.html
 http://people.debian.org/~osamu/pub/po4a/html/ch09.en.html#_chroot_system

But reported problem still exists (I updated for "package" and "network" only)
I knew this chroot was sour spot.

> The line 
>         main # mount /dev/ /sid-root/dev -o bind
> links /dev from the main setup to /dev in the chroot.  A bit further the
> line
>  
>         chroot # cd /dev; /sbin/MAKEDEV generic; cd -

I meant you are in chroot by using prompt as "chroot #".  So this
command was meant to be run after doing "chroot /sid-root /bin/bash".

I originally did not have this but after someone suggested, I added.  It
used to work, I think.

> seems meant for only the chroot, not the main system, but it does affect
> both setups because /dev from the main setup is already linked to /dev
> in the chroot.  Do I understand this correctly ?

Hmmmm... maybe suggestion to use "-o bind" was later added but
"/sbin/MAKEDEV generic;" was kept as is due to my sloppy updates.

Actually, current chroot setup scheme mount everything in advance.  It
seems, if /etx/fstab contain all procfs and sysfs entries, we do not need
to do this.  Also we can mount pts from within chroot.

If you can suggest simple(r) correct documentation here, please suggest.

> Also, about setting up X for chroot:
> http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot-x
> 
> The line
> 
>         chroot # vi /etc/gdm/gdm.conf # do s/vt7/vt9/ in [servers]
>         section
> 
> doesn't work for me with Lenny, because /etc/gdm/gdm.conf does not
> contain vt7.  I can add "FirstVT=9", but still, then X complains about
> another X already running.  I was hoping to have the main X on
> control-F7 and simultaneously the chroot X on control-F9.  Do you know
> how to make that work ?

This used to work but script must have changed.

> Or should I ask these questions to someone else ? I can imagine that
> multiple contributors have written parts of the debian-reference
> document.  Who contributed the part about chroot ?

I initially wrote these parts referencing existing documents at the
time while making it simpler.

This idea of running multiple X was from Raphael Hertzog
<hert...@debian.org>.

I see him in BTS talking about schroot recently.
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428805

As I tried to find recent information on chroot, I found
 http://linuxclues.blogspot.com/search/label/chroot

I do not have time now but file this as bug report to debian-reference
since this affects current ones.

I havent been running separate X under chroot recently. 

It seems best practice for chroot is packaged as pbuilder and schroot
for building package.  I am thinking to replace most of this section by
referencing "pbuilder --login" or similar. I wonder if there is similar
for X.

Osamu

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debian-reference depends on:
ii  debian-reference-en           2.31       Debian system administration guide

Versions of packages debian-reference recommends:
ii  debian-reference-de           2.31       Debian system administration guide
ii  debian-reference-es           2.31       Debian system administration guide
ii  debian-reference-fr           2.31       Debian system administration guide
ii  debian-reference-it           2.31       Debian system administration guide
ii  debian-reference-ja           2.31       Debian system administration guide
ii  debian-reference-pl           2.31       Debian system administration guide
ii  debian-reference-pt-br        2.31       Debian system administration guide
ii  debian-reference-zh-cn        2.31       Debian system administration guide
ii  debian-reference-zh-tw        2.31       Debian system administration guide

debian-reference suggests no packages.

-- no debconf information





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to