Code Sample |
# This part gets the partition ready and the source copied over to it. #While this is generally error free if you screw something up don't blame me, think about what you're doing before you do it. modprobe cloop mkdir /mnt/cloop mount /dev/cdrom /cdrom mount -o ro,loop=/dev/cloop /cdrom/KNOPPIX/KNOPPIX /mnt/cloop mount -rw /dev/hda3 /mnt/hda3 mkdir /mnt/hda3/source mkdir /mnt/hda3/newcd mkdir /mnt/hda3/newcd/KNOPPIX cp -aRp /cdrom/* /mnt/hda3/newcd cp -aRp /mnt/cloop/* /mnt/hda3/source cp -aRp /mnt/cloop/.bash_profile /mnt/hda3/source #I've got my needed files on a USB stick mkdir /mnt/hda3/source/frame cp /mnt/sda1/frame/feh.dsl /mnt/hda3/frame cp /mnt/sda1/frame/unclutter.dsl /mnt/hda3/frame #Optional http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=23;t=16023;st=5 cp /mnt/sda1/frame/rmapps.sh /mnt/hda3/frame # if you removed firefox delete it from bottom of this script also nano /mnt/hda3/source/etc/init.d/mkunion #A preconfigured scripts .xinitrc .bash_profile etc www.frontiernet.net/~pictureframe cp /mnt/sda1/skel/* /mnt/hda3/source/etc/skel mv /mnt/hda3/etc/skel/scripts/bootlocal.sh /mnt/hda3/source/opt mv /mnt/hda3/etc/skel/scripts/myiwconfig.sh /mnt/hda3/source/opt chroot /mnt/hda3/source tar -zxvf /frame/feh.dsl –same-owner -C / tar -zxvf /frame/unclutter.dsl –same-owner -C / #Careful with that Axe, Eugene rm -r /frame exit #Create the custom compressed image file mkisofs –R /mnt/hda3/source | create_compressed_fs - 65536 > /mnt/hda3/newcd/KNOPPIX/KNOPPIX #Create the iso-file as follows cd /mnt/hda3 mkisofs –no-pad –l –r –J –no-emul-boot –boot-load-size 4 –boot-info-table –b boot/isolinux/isolinux.bin –c boot/isolinux/boot.cat –hide-rr-moved –o mydsl.iso newcd |