Differences between revisions 22 and 24 (spanning 2 versions)
Revision 22 as of 2011-09-07 14:35:09
Size: 1164
Comment: fixed link
Revision 24 as of 2012-03-08 01:28:53
Size: 1183
Editor: ?paynalton
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[de/chroot|Deutsch]] - English - [[fr/Chroot|Français]] - [[it/chroot|Italiano]] -~ ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[de/chroot|Deutsch]] - English - [[fr/Chroot|Français]] - [[it/chroot|Italiano]]  - [[es/chroot|Español]] -~
Line 11: Line 11:
sudo mount -o bind /sys /tmp/custom/debian-live/chroot/sys
sudo mount -o bind /proc /tmp/custom/debian-live/chroot/proc
sudo chroot /tmp/custom/debian-live/chroot/
# mount -o bind /sys /tmp/custom/debian-live/chroot/sys
# mount -o bind /proc /tmp/custom/debian-live/chroot/proc
# chroot /tmp/custom/debian-live/chroot/
Line 17: Line 17:
dhclient eth0 # dhclient eth0

Translation(s): Deutsch - English - Français - Italiano - Español

All chroot does is, for all child processes, replace the root directory with the one specified.

Setting up a network inside a chroot /tmp/custom/debian-live/chroot/

# mount -o bind /sys /tmp/custom/debian-live/chroot/sys
# mount -o bind /proc /tmp/custom/debian-live/chroot/proc
# chroot /tmp/custom/debian-live/chroot/

Now in the chroot you might need to reset the network in order for the route/dns stuff to be setup.

# dhclient eth0

This is useful for testing and configuring a system that is to be deployed, e.g.DebianLive.

Build a chroot

  • Debootstrap : Setting up another complete Debian install inside a chroot.

See also

ToDo: Sync with french version