Difference between revisions of "Debootstrap to x86-64 LiveCD"
From Knoppix Documentation Wiki
(→Development) |
(→DeBootstrap) |
||
Line 22: | Line 22: | ||
debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${SOURCEDIR} ${DEBIAN_MIRROR} | debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${SOURCEDIR} ${DEBIAN_MIRROR} | ||
cp /etc/resolv.conf ${SOURCEDIR}/etc/. | cp /etc/resolv.conf ${SOURCEDIR}/etc/. | ||
+ | |||
+ | ==Now Chroot and set up environment== | ||
chroot ${SOURCEDIR} \ | chroot ${SOURCEDIR} \ | ||
/usr/bin/env \ | /usr/bin/env \ | ||
Line 33: | Line 35: | ||
apt-get update | apt-get update | ||
apt-get install perl udev gawk locales | apt-get install perl udev gawk locales | ||
− | + | ||
==Development== | ==Development== | ||
#( I am in the process of finding out whats needed ) | #( I am in the process of finding out whats needed ) |
Revision as of 22:07, 5 July 2006
Contents
preamble
- In Development by SNIa 19:30, 5 Jul 2006 (GMT)
- Using the Debian Net-inst CD as a base
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-amd64
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 && ./MAKEDEV generic echo "deb http://amd64.debian.net/debian-amd64 sarge main contrib non-free" > /etc/apt/sources.list apt-get update apt-get install perl udev gawk locales
Development
- ( I am in the process of finding out whats needed )
apt-get install \ bootcd \ bootcd-i386 \ bootcd-mkinitrd \ busybox \ cramfsprogs \ dash \ discover \ discover-data \ dosfstools \ file \ initrd-tools \ libdiscover2 \ libexpat1 \ libmagic1 \ mkisofs \ realpath \ syslinux \ kernel-headers-2.6-amd64-generic \ kernel-headers-2.6.8-11 \ kernel-headers-2.6.8-11-amd64-generic \ kernel-image-2.6-amd64-generic \ kernel-image-2.6.8-11-amd64-generic \ kernel-kbuild-2.6-3 \ module-init-tools
notes
- See sister project for comparison Debootstrap to LiveCD