I seem to be doing this a lot at the moment. So I’ve collected a few notes together as reminder of the process.
Collection of HOWTOs:
- The Debian GNU/Linux AMD64 HOW-TO
- HOWTO – Install Debian Onto a Remote Linux System
- Building a chroot environment on debian with libpam-chroot
* debootstrap –arch amd64 breezy /amd64/ http://archive.ubuntu.com/ubuntu
* debootstrap –arch amd64 sarge /pure64/ http://amd64.debian.net/debian-amd64/
Few things that should be done in the chroot:
* sudo chroot /chroot/ /bin/bash
* mount -t proc proc /proc
* check etc/fstab etc/resolv.conf etc/network/interface etc/hostname etc/apt/source.list
* dpkg-reconfigure -plow console-data
* dpkg-reconfigure -plow locales
* dpkg-reconfigure -plow passwd
* maybe run apt-setup
* ln -sf /usr/share/zoneinfo/NZ /etc/localtime
Some other notes:
* base-config might or might not cover some of the above and might or might not work.
* bootstraping ubuntu from debian requires two stage process. Basically bootstrap a stage one ubuntu chroot, then create the final ubuntu install from with the chroot.