Difference between revisions of "Debootstrap to LiveCD"


From Knoppix Documentation Wiki
Jump to: navigation, search
(Specific Knoppix Packages)
m (Reverted edits by Brianpalmer2010 (Talk); changed back to last version by Clinton)
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
=PREAMBLE=
 
=PREAMBLE=
  
*This script was done using the [http://www.knopper.net/knoppix-mirrors/index-en.html Knoppix 5.1] boot cd.
+
*This script can be run using any debian based distro, including the [http://www.knopper.net/knoppix-mirrors/index-en.html Knoppix 5.1] boot cd.
*This has been updated by: [[User:SNIa|SNIa]] 22:21, 20 Feb 2007 (GMT)
+
 
*Knoppix Sources http://debian-knoppix.alioth.debian.org/
 
*Knoppix Sources http://debian-knoppix.alioth.debian.org/
 +
*Please note that this howto is not without a few flaws, please revise and suggest as necessary.
  
 
*Debian Releases:
 
*Debian Releases:
**[http://www.debian.org/releases/stable/ sarge] = stable realease
+
**[http://www.debian.org/releases/stable/ etch] = stable realease
**[http://www.debian.org/releases/testing/ etch] = testing release
+
**[http://www.debian.org/releases/testing/ lenny] = testing release
 
**[http://www.debian.org/releases/unstable/ sid] = unstable release
 
**[http://www.debian.org/releases/unstable/ sid] = unstable release
  
Line 13: Line 13:
 
The following conventions are used, within dotted box:
 
The following conventions are used, within dotted box:
 
  Commands & paramaters
 
  Commands & paramaters
  Text can be directly input into a script.
+
  Text within this dotted box can be put directly into a script
Some commands are linked, if you require further explanation click the link :)
+
Some commands are linked, if you require further explanation of the command or parameter click the link. Example shown below:
 
  [[apt-get]]
 
  [[apt-get]]
  
=SCRIPT=
+
=GETTING STARTED=
 +
NOTE: You will need about 9 Gigabytes of free disk space.  All dotted boxes below are to be put into a script, or into a shell directly.
 
==Setup The Environment==
 
==Setup The Environment==
 +
=====Hash Bang=====
 
*As required at the beginning of a script (UNIX), a [http://en.wikipedia.org/wiki/Shebang_(Unix) Hash Bang]
 
*As required at the beginning of a script (UNIX), a [http://en.wikipedia.org/wiki/Shebang_(Unix) Hash Bang]
 
  #!/bin/bash
 
  #!/bin/bash
*Script Variables: (More info see: [http://tldp.org/LDP/abs/html/variables.html BASH Variables])
+
 
  SOURCEDIR=[[`pwd`]]/source/KNOPPIX
+
You will need KNOPPIX_V5.1.0CD-2006-12-30-EN.iso (or whatever version one you want)
  MASTERDIR=`[[pwd]]`/master
+
 
 +
=====Script Variables=====
 +
*More info see: [http://tldp.org/LDP/abs/html/variables.html BASH Variables]
 +
* cd somewhere appropriate and become superuser
 +
  cd $HOME
 +
export KNXISO=KNOPPIX_V5.1.0CD-2006-12-30-EN.iso
 +
wget http://www.kernel.org/pub/dist/knoppix/${KNXISO}
 +
ln -s `pwd`/${KNXISO} /tmp/${KNXISO}  # make link for later
 +
su  # become superuser
 +
! type extract_compressed_fs && [[apt-get]] cloop-utils # You will need cloop
 +
! type qemu && [[apt-get]] qemu # Optional, you might need qemu
 +
KNXROOT=[[`pwd`]]/knxstrap
 +
OLDSRCDIR=${KNXROOT}/oldsrc/KNOPPIX
 +
NEWSRCDIR=${KNXROOT}/newsrc/KNOPPIX
 +
  MASTERDIR=${KNXROOT}/master
 
  ARCH=i386  
 
  ARCH=i386  
  DEBIAN_RELEASE=[http://www.debian.org/releases/unstable/ sid]
+
  DEBIAN_RELEASE=sid # (http://www.debian.org/releases/unstable/)
 
  DEBIAN_MIRROR=http://http.us.debian.org/debian
 
  DEBIAN_MIRROR=http://http.us.debian.org/debian
=====Specific Knoppix Packages=====
+
  # DEBIAN_MIRROR=http://debian.osuosl.org/debian # or use this mirror
  KNOPPIX_PACKAGES="\
+
  ash-knoppix-26 \
+
  hwsetup \
+
  hwdata-knoppix \
+
  cloop-module \
+
  linux-image-2.6.17 \
+
  loop-aes-module-2.6.17 \
+
  madwifi-modules-2.6.17 \
+
  ndiswrapper-modules-2.6.17 \
+
  ndiswrapper-utils \
+
  rt2x00-modules-2.6.17 \
+
  unionfs-knoppix-modules-2.6.17 \
+
  zr364xx-modules-2.6.17 \
+
  zydas-modules-2.6.17 \
+
  linux-image-2.6.17 \
+
  linux-kernel-headers-knoppix \
+
  knoppix-udev-config \
+
  knoppix-initscripts \
+
  knoppix-remountrw] \
+
  knoppix-setrootpassword \
+
  linux-kernel-headers-knoppix \
+
  startsyslog-knoppix \
+
  scanpartitions-knoppix \
+
  rebuildfstab-knoppix \
+
  network-setup-knoppix \
+
  usleep-knoppix \
+
  netcardconfig-knoppix \
+
  kudzu-knoppix-dev \
+
  automount-knoppix"
+
  
Now setup the environment, make directories, run the debootstrap command and then change root:
+
=====Make directories, mount CD image, copy files over to the Master dir=====
  mkdir -p ${SOURCEDIR}
+
  mkdir -p ${MASTERDIR} ${NEWSRCDIR}/usr/src \
mkdir -p ${SOURCEDIR}/knxfiles
+
  ${OLDSRCDIR}/knxfiles ${KNXROOT}/mnt
   
+
  mount -t iso9660 -o ro,loop=/dev/loop/0 /tmp/${KNXISO} ${KNXROOT}/mnt
  [[debootstrap]] --arch ${ARCH} ${DEBIAN_RELEASE} ${SOURCEDIR} ${DEBIAN_MIRROR}
+
  cd ${KNXROOT}/mnt && find . -size -10000k -type f -exec \
  cd /KNOPPIX/usr/src/ &&
+
  cp -p --parents '{}' ${MASTERDIR} \;
  cp -Rp \
+
 
  Makefile \
+
=====Extract compressed Knoppix filesystem=====
  kernel.conf \
+
extract_compressed_fs ${KNXROOT}/mnt/KNOPPIX/KNOPPIX > \
  knoppix-kernel.README \
+
  ${KNXROOT}/KNOPPIX.src.iso
  knoppix-kernel.patch \
+
  cd ${KNXROOT}; umount ${KNXROOT}/mnt
  linux \
+
mount -t iso9660 -o ro,loop=/dev/loop/0 \
  linux-2.6.17 \
+
  ${KNXROOT}/KNOPPIX.src.iso ${KNXROOT}/mnt
  ${SOURCEDIR}/usr/src/.
+
 
+
=====Copy files over to old source dir=====
  cd ${SOURCEDIR}/knxfiles &&
+
  cp -Rp ${KNXROOT}/mnt/* ${OLDSRCDIR}
 +
umount ${KNXROOT}/mnt
 +
rmdir ${KNXROOT}/mnt
 +
 
 +
=====Go into old source dir and reconstruct Knoppix specific packages=====
 +
chroot ${OLDSRCDIR}
 +
dpkg --get-selections > dpkg.selections.txt
 +
COLUMNS=200
 +
KNOPPIX_PACKAGES=`dpkg -l "*knoppix*" | grep ^ii |awk '{print $2} '`
 +
KNOPPIX_PACKAGES+=`dpkg -l "*2\.6*" | grep "^ii" |awk '{print $2} '`
 +
# The following list is based on knoppix 5.1, you may have to change
 +
# it for other versions
 +
KNOPPIX_PACKAGES+="linux-kernel-headers \
 +
  linux-sound-base \
 +
  loop-aes-utils \
 +
  madwifi-tools \
 +
  ndiswrapper-utils"
 +
 
 +
Make packages from original Knoppix version.  You will get lots of errors that it can't find necessary files (mostly in /usr/share...) on this next step; you can safely ignore them.
 +
  cd knxfiles
 
  for PACKAGE in ${KNOPPIX_PACKAGES};
 
  for PACKAGE in ${KNOPPIX_PACKAGES};
 
  {
 
  {
   [[dpkg-repack]] ${PACKAGE}
+
   dpkg-repack ${PACKAGE}
 
  };
 
  };
   
+
  exit
  [[chroot]] ${SOURCEDIR} \
+
 
  /usr/bin/env -i \
+
Get bootstrap files, copy selections and /usr/src over to new source dir
  HOME=/root \
+
  debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${NEWSRCDIR} ${DEBIAN_MIRROR}
  TERM=$TERM \
+
cp -prd ${OLDSRCDIR}/knxfiles ${OLDSRCDIR}/dpkg.selections.txt ${NEWSRCDIR}
  PS1='\u:\w\$ ' \
+
cp -Rp ${OLDSRCDIR}/usr/src/* ${NEWSRCDIR}/usr/src
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+
 
  /bin/bash --login
+
chroot to new source dir
 +
chroot ${NEWSRCDIR} /usr/bin/env -i HOME=/root TERM=$TERM \
 +
  PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login
 +
 
 +
Install dependencies required for Knoppix, answer "y" to all queries
  
==Within chroot==
+
  [[apt-get]] update
*Install Dependencies required for Knoppix
+
[[apt-get]] install \
  [[apt-get]] [[apt-get#install|install]] \
+
 
   gawk \
 
   gawk \
 
   perl \
 
   perl \
Line 103: Line 112:
 
   pump \
 
   pump \
 
   dhcp3-common \
 
   dhcp3-common \
  linux-sound-base \
 
  ndiswrapper-utils \
 
  ndiswrapper-common \
 
  ndiswrapper-utils-1.1 \
 
 
   binutils \
 
   binutils \
 
   debhelper \
 
   debhelper \
Line 117: Line 122:
 
   make \
 
   make \
 
   patch \
 
   patch \
   po-debconf
+
   po-debconf \
+
  modutils
  [[useradd]] [[useradd#-m|-m]] knoppix
+
  useradd -m knoppix
  echo 'deb-src http://debian-knoppix.alioth.debian.org ./' >> /etc/apt/sources.list
+
  echo 'deb-src http://debian-knoppix.alioth.debian.org ./' \
  echo 'deb http://debian-knoppix.alioth.debian.org ./' >> /etc/apt/sources.list
+
  >> /etc/apt/sources.list
+
  echo 'deb http://debian-knoppix.alioth.debian.org ./' \
 +
  >> /etc/apt/sources.list
 +
 
 +
Update and install knoppix specific deb's, you will get some errors in the dpkg step, ignore them
 
  [[apt-get]] [[apt-get#update|update]]
 
  [[apt-get]] [[apt-get#update|update]]
  cd /knxfiles &&
+
  [[dpkg]] -i /knxfiles/* # Say "NO" to "stop install since..."
  [[dpkg]] [[dpkg#-i|-i]] * &&
+
rm -rf /knxfiles
  cd / && rm -rf /knxfiles
+
 
  [[apt-get]] [[apt-get#clean|clean]]
+
NOTE: The following will install EVERYTHING that was in the original CD!  At this point you are going to start seeing errors.  Mostly because the configure scripts are trying to do things to your run-time system and they are failing since you are in a chroot.  If the errors are from dmraid samba, telnetd-ssl, etc then you can safely ignore them.
 +
 
 +
  [[apt-get]] -f install
 +
for pkg in `grep "\binstall$" dpkg.selections.txt | awk '{print $1} '`; \
 +
  do apt-get -y --force-yes install $pkg; done
 +
dselect update
 +
[[apt-get]] dselect-upgrade
 +
 
 +
Install extra stuff if you want (optional).
 +
 
 +
[[apt-get]] install whatever
 +
 
 +
Now it's time for a sanity check, if you do:
 +
[[dpkg]] --status xserver-xorg-video-nv
 +
 
 +
and it tells you it's not installed then something is wrong and you need to force dpkg to install this (and many more probably missing)
 
   
 
   
 +
Clean up if you want to get rid of some space so it fits on a CD
 +
chmod 755 /etc/X11/xinit/xinitrc  # fix mode on xinitrc
 +
[[apt-get]] remove kde-i18n*  # this is optional
 +
deborphan | xargs [[apt-get]] -y remove # do this until nothing left to orphan
 +
COLUMNS=200 [[dpkg]] -l |grep ^rc |awk '{print $2} ' | xargs [[dpkg]] -P
 +
[[apt-get]] [[apt-get#clean|clean]]
 +
# this is optional, if you need space:
 +
cd /var/lib/apt/lists; rm -f *Packages *Release *Release.gpg
 +
rm -rf /var/lib/dpkg/*old /var/cache/debconf/*old \
 +
  /var/cache/apt/*bin /usr/share/doc/*
 
  exit
 
  exit
  
==Exit Chroot & Finalize==
+
==Finalize==
Prep startup rc startup scripts, [http://man.linuxquestions.org/index.php?query=inittab&type=2&section=5 inittab]
+
Prep startup rc startup scripts, (dead link)
cd ${SOURCEDIR}/etc &&
+
  rm -rf rc* &&
+
  cd /KNOPPIX/etc &&
+
  cp -ax inittab rc* ${SOURCEDIR}/etc/.
+
umount ${SOURCEDIR}/proc
+
  
 +
rm -rf ${NEWSRCDIR}/etc/rc* ${NEWSRCDIR}/etc/inittab ${NEWSRCDIR}/etc/passwd
 +
cp -ax ${OLDSRCDIR}/etc/inittab ${OLDSRCDIR}/etc/passwd \
 +
  ${OLDSRCDIR}/etc/rc* ${NEWSRCDIR}/etc
 +
 +
We're basically done but if you want to make any changes with how Knoppix starts or what comes up when it starts, this is the place to do it.  You could just copy stuff to /etc/skel so that you have it on your new cd under /home/knoppix
 
==Build The CD==
 
==Build The CD==
 
*Make the compressed KNOPPIX CLOOP file
 
*Make the compressed KNOPPIX CLOOP file
  [[mkisofs]] \
+
 
[[mkisofs#-R|-R]] \
+
  [[mkisofs]] -R -U -V "Knoppix" -publisher "yourname" -hide-rr-moved \
[[mkisofs#-U|-U]] \
+
  -cache-inodes -no-bak -pad ${NEWSRCDIR} | nice -5 \
[[mkisofs#-V|-V]] "Knoppix" \
+
  /usr/bin/create_compressed_fs - 65536 >  ${MASTERDIR}/KNOPPIX/KNOPPIX
[[mkisofs#-publisher|-publisher]] "rjenniss" \
+
 
[[mkisofs#-hide-rr-moved|-hide-rr-moved]] \
+
Create the knoppix.iso file  
  [[mkisofs#-cache-inodes|-cache-inodes]] \
+
 
[[mkisofs#-no-bak|-no-bak]] \
+
  [[mkisofs]] -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 \
[[mkisofs#-pad|-pad]] ${SOURCEDIR} | \
+
  -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
  nice -5 /usr/bin/create_compressed_fs - 65536 >  ${MASTERDIR}/KNOPPIX/KNOPPIX
+
  -hide-rr-moved -o ${KNXROOT}/knoppix.iso ${MASTERDIR}
*Create the knoppix.iso file
+
 
mkdir -p ${MASTERDIR}/KNOPPIX
+
Try it out
cd /cdrom && find . -size -10000k -type f -exec cp -p --parents '{}' ${MASTERDIR} \;
+
  qemu -m 128 -cdrom ${KNXROOT}/knoppix.iso -boot d
  [[mkisofs]] \
+
 
[[mkisofs#-pad|-pad]] \
+
Burn it
[[mkisofs#-l|-l]] \
+
k3b ${KNXROOT}/knoppix.iso
[[mkisofs#-r|-r]] \
+
 
[[mkisofs#-J|-J]] \
+
[[mkisofs#-v|-v]] \
+
[[mkisofs#-V|-V]] "KNOPPIX" \
+
[[mkisofs#-no-emul-boot|-no-emul-boot]] \
+
[[mkisofs#-boot-load-size|-boot-load-size]] 4 \
+
  [[mkisofs#-boot-info-table|-boot-info-table]] \
+
[[mkisofs#-b|-b]] boot/isolinux/isolinux.bin \
+
[[mkisofs#-c|-c]] boot/isolinux/boot.cat \
+
  [[mkisofs#-hide-rr-moved|-hide-rr-moved]] \
+
  [[mkisofs#-o|-o]] knoppix.iso ${MASTERDIR}
+
  
 
=SPECIAL THANKS & SUPPORT=
 
=SPECIAL THANKS & SUPPORT=

Latest revision as of 16:28, 16 February 2011

PREAMBLE

  • Debian Releases:
    • etch = stable realease
    • lenny = testing release
    • sid = unstable release

CONVENTIONS USED

The following conventions are used, within dotted box:

Commands & paramaters
Text within this dotted box can be put directly into a script

Some commands are linked, if you require further explanation of the command or parameter click the link. Example shown below:

apt-get

GETTING STARTED

NOTE: You will need about 9 Gigabytes of free disk space. All dotted boxes below are to be put into a script, or into a shell directly.

Setup The Environment

Hash Bang
  • As required at the beginning of a script (UNIX), a Hash Bang
#!/bin/bash

You will need KNOPPIX_V5.1.0CD-2006-12-30-EN.iso (or whatever version one you want)

Script Variables
  • More info see: BASH Variables
  • cd somewhere appropriate and become superuser
cd $HOME
export KNXISO=KNOPPIX_V5.1.0CD-2006-12-30-EN.iso
wget http://www.kernel.org/pub/dist/knoppix/${KNXISO}
ln -s `pwd`/${KNXISO} /tmp/${KNXISO}  # make link for later
su  # become superuser
! type extract_compressed_fs && apt-get cloop-utils # You will need cloop
! type qemu && apt-get qemu # Optional, you might need qemu
KNXROOT=`pwd`/knxstrap
OLDSRCDIR=${KNXROOT}/oldsrc/KNOPPIX
NEWSRCDIR=${KNXROOT}/newsrc/KNOPPIX
MASTERDIR=${KNXROOT}/master
ARCH=i386 
DEBIAN_RELEASE=sid # (http://www.debian.org/releases/unstable/)
DEBIAN_MIRROR=http://http.us.debian.org/debian
# DEBIAN_MIRROR=http://debian.osuosl.org/debian # or use this mirror
Make directories, mount CD image, copy files over to the Master dir
mkdir -p ${MASTERDIR} ${NEWSRCDIR}/usr/src \
 ${OLDSRCDIR}/knxfiles ${KNXROOT}/mnt
mount -t iso9660 -o ro,loop=/dev/loop/0 /tmp/${KNXISO} ${KNXROOT}/mnt
cd ${KNXROOT}/mnt && find . -size -10000k -type f -exec \
 cp -p --parents '{}' ${MASTERDIR} \;
Extract compressed Knoppix filesystem
extract_compressed_fs ${KNXROOT}/mnt/KNOPPIX/KNOPPIX > \
 ${KNXROOT}/KNOPPIX.src.iso
cd ${KNXROOT}; umount ${KNXROOT}/mnt
mount -t iso9660 -o ro,loop=/dev/loop/0 \
 ${KNXROOT}/KNOPPIX.src.iso ${KNXROOT}/mnt
Copy files over to old source dir
cp -Rp ${KNXROOT}/mnt/* ${OLDSRCDIR}
umount ${KNXROOT}/mnt
rmdir ${KNXROOT}/mnt
Go into old source dir and reconstruct Knoppix specific packages
chroot ${OLDSRCDIR}
dpkg --get-selections > dpkg.selections.txt
COLUMNS=200
KNOPPIX_PACKAGES=`dpkg -l "*knoppix*" | grep ^ii |awk '{print $2} '`
KNOPPIX_PACKAGES+=`dpkg -l "*2\.6*" | grep "^ii" |awk '{print $2} '`
# The following list is based on knoppix 5.1, you may have to change
# it for other versions
KNOPPIX_PACKAGES+="linux-kernel-headers \
 linux-sound-base \
 loop-aes-utils \
 madwifi-tools \
 ndiswrapper-utils"

Make packages from original Knoppix version. You will get lots of errors that it can't find necessary files (mostly in /usr/share...) on this next step; you can safely ignore them.

cd knxfiles
for PACKAGE in ${KNOPPIX_PACKAGES};
{
  dpkg-repack ${PACKAGE}
};
exit

Get bootstrap files, copy selections and /usr/src over to new source dir

debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${NEWSRCDIR} ${DEBIAN_MIRROR}
cp -prd ${OLDSRCDIR}/knxfiles ${OLDSRCDIR}/dpkg.selections.txt ${NEWSRCDIR}
cp -Rp ${OLDSRCDIR}/usr/src/* ${NEWSRCDIR}/usr/src

chroot to new source dir

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

Install dependencies required for Knoppix, answer "y" to all queries

apt-get update
apt-get install \
  gawk \
  perl \
  libdb4.4 \
  perl-modules \
  console-tools \
  console-data \
  console-common \
  pciutils \
  libpci2 \
  udev \
  libvolume-id0 \
  pump \
  dhcp3-common \
  binutils \
  debhelper \
  dpkg-dev \
  file \
  gettext \
  html2text \
  intltool-debian \
  libmagic1 \
  make \
  patch \
  po-debconf \
  modutils
useradd -m knoppix
echo 'deb-src http://debian-knoppix.alioth.debian.org ./' \
 >> /etc/apt/sources.list
echo 'deb http://debian-knoppix.alioth.debian.org ./' \
 >> /etc/apt/sources.list

Update and install knoppix specific deb's, you will get some errors in the dpkg step, ignore them

apt-get update
dpkg -i /knxfiles/*  # Say "NO" to "stop install since..."
rm -rf /knxfiles

NOTE: The following will install EVERYTHING that was in the original CD! At this point you are going to start seeing errors. Mostly because the configure scripts are trying to do things to your run-time system and they are failing since you are in a chroot. If the errors are from dmraid samba, telnetd-ssl, etc then you can safely ignore them.

apt-get -f install
for pkg in `grep "\binstall$" dpkg.selections.txt | awk '{print $1} '`; \
 do apt-get -y --force-yes install $pkg; done
dselect update
apt-get dselect-upgrade

Install extra stuff if you want (optional).

apt-get install whatever

Now it's time for a sanity check, if you do:

dpkg --status xserver-xorg-video-nv

and it tells you it's not installed then something is wrong and you need to force dpkg to install this (and many more probably missing)

Clean up if you want to get rid of some space so it fits on a CD

chmod 755 /etc/X11/xinit/xinitrc  # fix mode on xinitrc
apt-get remove kde-i18n*  # this is optional
deborphan | xargs apt-get -y remove # do this until nothing left to orphan
COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P
apt-get clean
# this is optional, if you need space:
cd /var/lib/apt/lists; rm -f *Packages *Release *Release.gpg
rm -rf /var/lib/dpkg/*old /var/cache/debconf/*old \
 /var/cache/apt/*bin /usr/share/doc/*
exit

Finalize

Prep startup rc startup scripts, (dead link)

rm -rf ${NEWSRCDIR}/etc/rc* ${NEWSRCDIR}/etc/inittab ${NEWSRCDIR}/etc/passwd
cp -ax ${OLDSRCDIR}/etc/inittab ${OLDSRCDIR}/etc/passwd \
 ${OLDSRCDIR}/etc/rc* ${NEWSRCDIR}/etc

We're basically done but if you want to make any changes with how Knoppix starts or what comes up when it starts, this is the place to do it. You could just copy stuff to /etc/skel so that you have it on your new cd under /home/knoppix

Build The CD

  • Make the compressed KNOPPIX CLOOP file
mkisofs -R -U -V "Knoppix" -publisher "yourname" -hide-rr-moved \
-cache-inodes -no-bak -pad ${NEWSRCDIR} | nice -5 \
/usr/bin/create_compressed_fs - 65536 >  ${MASTERDIR}/KNOPPIX/KNOPPIX

Create the knoppix.iso file

mkisofs -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 \
-boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-hide-rr-moved -o ${KNXROOT}/knoppix.iso ${MASTERDIR}

Try it out

qemu -m 128 -cdrom ${KNXROOT}/knoppix.iso -boot d

Burn it

k3b ${KNXROOT}/knoppix.iso


SPECIAL THANKS & SUPPORT

  • If this was of help, feel free to post a message
  • Support
  • How do I find what files belong to what packages? answer