Let's make remastering easier
Forum: Other Help Topics
Topic: Let's make remastering easier
started by: newby
Posted by newby on July 25 2006,23:26
As I read the many, many posts about remastering, I'm left with the question:
"Why are we working so hard?"
Someone who's really good at remastering would really help the rest of us by writing a script that presents a menu for each of the steps involved. (My suggested menu items in CAPITALS.)
After each suggested menu item I've included example code copied from posts. Examples are for descriptive purposes only - DO NOT TRY TO RUN THIS CODE!
(Others may factor the code differently.)
The benefit of such a script is that one can stop after each step and check the work (or go to bed and take it up in the morning). Branches of the script could be made for people with lots of memory (remaster in memory) and those with lots of disk space (remaster to disk).
==============================================================
DSL Remaster Menu
1. MEMORY vs. DISK
Code Sample | ...ask question(s) to determine if remastering should be done in memory or on the hard drive... |
(The following examples are taken from hard drive-based examples.)
2. SELECT SOURCE & DESTINATIONS
Code Sample | Do the equivalent of the following, asking the user for the specific partitions or directories:
$sudo su #mount -rw /dev/hda1 /mnt/hda1 mke2fs /dev/hda3 #mount -rw /dev/hda3 /mnt/hda3
#mount -rw /.../source-of-added-packages #mount -rw /dev/cddrive...
...and exit to the menu... |
3. COPY SOURCE FILES
Code Sample | Do the equivalent of the following, asking the user for the specific partitions/directories _or_ using the previously selected partitions/directories:
#mount the directories
$sudo su #mount -rw /dev/hda1 /mnt/hda1 #mount -rw /dev/hda3 /mnt/hda3
Make the directories needed
#mkdir /mnt/hda3/source #mkdir /mnt/hda3/newcd #mkdir /mnt/hda3/newcd/KNOPPIX
Copy necessary files to directory /newcd
#cp -Rp /cdrom/boot /mnt/hda3/newcd #cp -Rp /cdrom/lost+found /mnt/hda3/newcd #cp -Rp /cdrom/index.html /mnt/hda3/newcd
Copy the sources to the right directory
#cp -Rp /KNOPPIX/* /mnt/hda3/source #cp -Rp /KNOPPIX/.bash_profile /mnt/hda3/source
#cp -Rp /mnt/hda1/backgrounds/* /mnt/hda3/source/etc/skel/.fluxbox #cp -Rp /mnt/hda1/styles/* /mnt/hda3/source/usr/share/fluxbox/styles
...and exit to the menu... |
4. MAKE CUSTIMIZATIONS
Code Sample | #Start emelFM
...exit to menu... |
5. CREATE NEW DSL IMAGE
Code Sample | Do the equivalent of the following, asking the user for the specific partitions/directories _or_ using the previously selected partitions/directories:
#mount the directories
$sudo su #mount -rw /dev/hda1 /mnt/hda1 #mount -rw /dev/hda3 /mnt/hda3
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 |
6,7,8,9. MEMORY INTENSIVE
Code Sample | ...All of the above steps configured for remastering in memory... |
10. BURN MEDIA
Code Sample | ...delete the source directory...
...use the previously selected cd burner...
...Burn that iso!...
...and exit. |
|