On Wed, 30 Nov 2005, Faheem Mitha wrote:
Package: debian-reference
Severity: wishlist
Tags: patch
Hi,
I'd suggest adding some material to the dchroot section, including notes
about about bind mounts, dchroot, and prompt configuration. I've found all
this information extremely useful.
See included patch (generated using mercurial), against the text version of
the English Debian reference manual (version in Sarge). I've not tried very
hard to integrate this into the material, so this patch is intended as an
example only, but it would be cool if similar material could be included in
whatever form.
Thanks. Faheem.
diff -r 01cb008e3db4 reference.en.txt
--- a/reference.en.txt Thu Dec 1 00:43:18 2005
+++ b/reference.en.txt Wed Nov 30 21:46:40 2005
@@ -6991,6 +6991,27 @@
chroot # vi /etc/apt/sources.list # point the source to unstable
chroot # dselect # you may use aptitude, install mc and vim :-)
+ Since you will probably want to use your 'main' home directory
+ from within the chroot, you can bind your home directory to the chroot
home directory
+
+ You also need to bind the 'main' /tmp to the chroot /tmp in order
+ for X forwarding to work.
+
+ For example, you could add the following to your 'main'
+ /etc/fstab.
+
+ /home /sid-root/home none bind 0 0
+ /tmp /sid-root/tmp none bind 0 0
+
+
+ In addition, a simple method of making sure that the same users
+ and groups are available in the chroot as in 'main' is to add the
+ following to /etc/fstab.
+
+ /etc/passwd /sid-root/etc/passwd ext3 bind,defaults
0 0
+ /etc/shadow /sid-chroot/etc/shadow ext3 bind,defaults
0 0
+ /etc/group /sid-chroot/etc/group ext3 bind,defaults
0 0
I'd also suggest mounting devpts in the chroot, since otherwise screen
will not work. Eg
devpts-sid /sid-chroot/dev/pts devpts defaults 0 0
Faheem.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]