Debootstrap, bind, and chroot

Jon Dixon dixon.jon at gmail.com
Tue Nov 15 10:30:45 UTC 2005


Stephen R Laniel wrote:
> This advice on how to run bind as chroot seems overly
> complicated to me:
> http://people.debian.org/~pzn/howto/chroot-bind.sh.txt
> 
> Shouldn't there be some way to basically debootstrap a bind
> installation into the chroot jail? I'd like to be able to do
> something like
> 
> chroot /chroot sudo apt-get install bind
> 
> but that unfortunately doesn't work -- because by the time
> we get to the 'apt-get' command, the shell thinks the root
> is /chroot . Conundrum.
> 
> Any thoughts on how to get around this?
> 
> 

Hi Stephen

For me to get into the /chroot environment I do: dchroot -d.

I can then use apt-get to install any package into that environment.

HTH,

Jon




More information about the ubuntu-users mailing list