Debootstrap to x86-64 LiveCD


From Knoppix Documentation Wiki
Revision as of 21:31, 23 June 2007 by PwaVqx (Talk | contribs)

Jump to: navigation, search

Welcome to the Knoppix 64 / 64bit / AMD64 / EM64T / Knoppix64 LiveCD

preamble

  • PLEASE if anyone knows where to find the patches for the knoppix kernel please send me an email: jupiterproject at gmail dot com, thanks!
  • In Development by SNIa 05:05, 10 Jul 2006 (GMT)
  • Using the Debian Net-inst CD as a base, still very alpha.

Variables

#!/bin/bash

SOURCEDIR=/mnt/hda1/source/KNOPPIX64
MASTERDIR=/mnt/hda1/master/KNOPPIX64
ARCH=amd64
DEBIAN_RELEASE=sarge
DEBIAN_MIRROR=http://amd64.debian.net/debian-pure64/

Set Up the Environment

mkdir -p ${SOURCEDIR}
mkdir -p ${MASTERDIR}

DeBootstrap

debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${SOURCEDIR} ${DEBIAN_MIRROR}
cp /etc/resolv.conf ${SOURCEDIR}/etc/.

Now Chroot and set up environment

chroot ${SOURCEDIR} \
   /usr/bin/env -i \
  HOME=/root \
  TERM=$TERM \
  PS1='\u:\w\$ ' \
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login

mount proc -t proc proc

cd /dev