Debootstrap to LiveCD


From Knoppix Documentation Wiki
Revision as of 03:07, 5 June 2006 by SNIa (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This HOW-TO is to create a Live CD using the Debian debootstrap utility to install your base, and then to further work towards a complete LiveCD of your preference.

Pretense

It is assumed that you have the understanding to create a directory, to have a debian system with access to the internet

Begin

First create a working directory, in this examle we will use /mnt/hda1/source/KNOPPIX

  • choose a mirror of your choice: http://www.debian.org/mirror/list
  • Also choose a release of your choice, either stable, testing, or unstable.
  • Choose the binary type, i386 or x86-64, power pc, etc.

In this example I have chosen my mirror to be ftp://ftp.egr.msu.edu/debian and I have chosen my release to be stable to run debootstrap

debootstrap --arch i386 sarge /mnt/hda1/source/KNOPPIX ftp://ftp.egr.msu.edu/debian

next you will want to mount your proc directory

Mount Proc

Mount the proc directory as follows:

mount proc -t proc /mnt/hda1/source/KNOPPIX/proc

Setup Networking

cp /etc/resolv.conf /mnt/hda1/source/KNOPPIX/etc/resolv.conf
cp /etc/hosts /mnt/hda1/source/KNOPPIX/etc/hosts
cp /etc/hostname /mnt/hda1/source/KNOPPIX/etc/hostname

CHROOT

chroot /mnt/hda1/source/KNOPPIX/ /usr/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login

reconfigure console

dpkg-reconfigure console-data

MAKEDEV

run makedev cd /dev

./MAKEDEV generic

BASE CONFIG

base-config

stay tuned

SNIa 03:07, 5 Jun 2006 (GMT)