Differences between revisions 7 and 8
Revision 7 as of 2007-08-12 21:24:25
Size: 938
Editor: FranklinPiat
Comment: Merge "BuildingAChroot" here.
Revision 8 as of 2007-12-15 18:54:16
Size: 1003
Editor: PeMac
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
All chroot does is, for all child processes, replace the root directory on a unix system with one of the operators' choosing. All chroot does is, for all ["child process"]es, replace the ["root directory"] on a ["Unix-like"] system with one of the operators' choosing.
Line 7: Line 7:
sudo mount -o bind /sys /tmp/custom/debian-live/chroot/sys ["sudo"] ["mount"] -o bind /sys /tmp/custom/debian-live/chroot/sys
Line 11: Line 11:
Ok, now in the chroot you might need to reset the network in order for the route/dns stuff to be setup. Now in the chroot you might need to reset the ["network"] in order for the route/dns stuff to be setup.
Line 13: Line 13:
dhclient eth0 ["dhclient"] eth0
Line 26: Line 26:
----
CategorySystemAdministration

All chroot does is, for all ["child process"]es, replace the ["root directory"] on a ["Unix-like"] system with one of the operators' choosing.

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

["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/

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"].

?Anchor(BuildAChroot)

Build a chroot

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

See also


CategorySystemAdministration