stupid_idiot
Group: Members
Posts: 344
Joined: Oct. 2006 |
|
Posted: Dec. 19 2007,18:54 |
|
Remastering:
DSL normally comes as 'dsl-4.x.iso'. Within the cdrom image is a second image file called '/KNOPPIX/KNOPPIX'. This is the cloop (compressed loop) image containing the root filesystem of DSL. (A cloop image is basically a normal ISO image with the sectors compressed using gzip-compression.)
The remastering procedure (Note: This is NOT authoritative! Just personal experience): (1) Mount the DSL ISO at <DIR_1>:Code Sample | mount -o loop dsl-4.x.iso <DIR_1> | (2) Copy <DIR_1> to <DIR_2>:Code Sample | cp -a <DIR_1> <DIR_2> | We will copy our new 'KNOPPIX' file into <DIR_2> later. We can't copy anything into <DIR_1> since the ISO is not writeable. (3) Extract 'KNOPPIX' to a normal ISO file; for example, you could call it 'KNOPPIX.iso', if you like:Code Sample | extract_compressed_fs <DIR_1>/KNOPPIX/KNOPPIX > KNOPPIX.iso | Mount 'KNOPPIX.iso' at <DIR_3>:Code Sample | mount -o loop KNOPPIX.iso <DIR_3> | (4) Copy <DIR_3> to <DIR_4>:Code Sample | cp -a <DIR_3> <DIR_4> | (We can't use <DIR_3> because 'KNOPPIX.iso' is read-only.) (4) Make all desired modifications to <DIR_4>. (5) Generate a new 'KNOPPIX' file from <DIR_4>:Code Sample | mkisofs -R -hide-rr-moved -cache-inodes -pad <DIR_4> | create_compressed_fs - 65536 > KNOPPIX | (6) Copy the new 'KNOPPIX' file into <DIR_2>:Code Sample | cp KNOPPIX <DIR_2>/KNOPPIX/KNOPPIX | (7) Generate the remastered DSL ISO from <DIR_2> (Very long command -- you might want to put it in a script, or a bash alias):Code Sample | mkisofs -R -hide-rr-moved -cache-inodes -pad -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table <DIR_2> > <NEW_NAME>.iso | The various options that come after '-pad' are necessary for loading the isolinux bootloader. Otherwise, we will get a non-booting coaster.
|