Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Let's make remastering easier, ...by factoring the code in the script!< Next Oldest | Next Newest >
newby Offline





Group: Members
Posts: 171
Joined: June 2006
Posted: July 25 2006,23:26 QUOTE

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.
Back to top
Profile PM 
0 replies since July 25 2006,23:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Let's make remastering easier

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code