|
Installare una Debian-Ubuntu in chroot con debootstrap |
|
Scritto da Federica
|
|
Lunedì 16 Aprile 2007 10:48 |
|
To setup a sarge system: # debootstrap sarge ./sarge-chroot http://ftp.debian.org/debian # debootstrap sarge ./sarge-chroot file:///PATH_TO_LOCAL_MIRROR/debian
Full process to create a complete Debian installation of sid (unstable):
main # cd / ; mkdir /sid-root main # debootstrap sid /sid-root http://ftp.debian.org/debian/ [ ... watch it download the whole system ] main # echo "proc /sid-root/proc proc none 0 0" >> /etc/fstab main # mount proc /sid-root/proc -t proc main # cp /etc/hosts /sid-root/etc/hosts main # chroot /sid-root /bin/bash chroot # dselect [ you may use aptitude, install mc and vim ... ] main # echo "8:23:respawn:/usr/sbin/chroot /sid-root " "/sbin/getty 38400 tty8" >> /etc/inittab [ define a login tty that will use this system ] main # init q [ reload init ]
|