Changes

Jump to navigation Jump to search
no edit summary
Line 7: Line 7:  
With debootstrap, you want something like  
 
With debootstrap, you want something like  
   −
   debootstrap --arch i386 sid sid-root http://debian.lcs.mit.edu/debian
+
  export CHROOT=`pwd`/sid-root
   sudo chroot sid-root /bin/bash -l
+
   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.)
  −
With debootstrap, you'll also need to run some of
  −
  −
  mount -t proc proc $CHROOT/proc
  −
  mount -t devpts devpts $CHROOT/dev/pts
  −
  mount -t selinuxfs selinux $CHROOT/selinux
  −
  −
manually in order to get a working chroot.
 
76

edits

Navigation menu