jmathai

Posts: 7 Replies: 0
October 19, 2007 @15:11 Same topic | Reply to this post This post is read only View this post by itself

How do I add networking support to chroot?

You'll need to mount a few additional things to make this happen.

mkdir /mnt/my_chroot
mount -t auto -o acl /dev/my_partition /mnt/my_chroot
mount --bind /dev /mnt/my_chroot/dev
mount --bind /tmp /mnt/my_chroot/tmp
mount --bind /proc /mnt/my_chroot/proc
mount --bind /etc/resolv.conf /mnt/my_chroot/etc/resolv.conf
chroot /mnt/my_chroot



apt
linux
FCGI/WSGI
0.13.3
139.160156 ms