Development Team/Chroot: Difference between revisions
m →X11 |
No edit summary |
||
| Line 7: | Line 7: | ||
With debootstrap, you want something like | With debootstrap, you want something like | ||
debootstrap --arch i386 sid | export CHROOT=`pwd`/sid-root | ||
sudo chroot | debootstrap --arch i386 sid $CHROOT http://debian.lcs.mit.edu/debian | ||
sudo chroot $CHROOT /bin/bash -l | |||
# and some of the following: | |||
mount -t proc proc $CHROOT/proc | |||
mount -t devpts devpts $CHROOT/dev/pts | |||
mount -t selinuxfs selinux $CHROOT/selinux | |||
in order to get a working chroot. | |||
With mock, it would be more like | With mock, it would be more like | ||
| Line 40: | Line 47: | ||
before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.) | before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.) | ||