1 |
# Start new file here. Call it something else. |
2 |
# |
3 |
# Why does the process hang on the /mnt directory as |
4 |
# well as the .gnome-desktop directory? I don't know - |
5 |
# so I remove them for now. |
6 |
|
7 |
#rm -rf /mnt/source/KNOPPIX/mnt/* |
8 |
#rm -rf /mnt/source/KNOPPIX/home/* |
9 |
#rm -rf /mnt/source/KNOPPIX/etc/skel/.gnome-desktop |
10 |
find /mnt -name *.ogg | xargs rm |
11 |
|
12 |
# remove cached apps - need to do this when chrooted |
13 |
#apt-get clean |
14 |
#updatedb |
15 |
|
16 |
# Make the disk. Notice I don't pipe the output directly - that failed on me a few times.... |
17 |
|
18 |
mkisofs -R -L -allow-multidot -l -V "KNOPPIX iso9660 filesystem" -o /mnt/master/knoppix.iso -hide-rr-moved -v /mnt/source/KNOPPIX |
19 |
create_compressed_fs /mnt/master/knoppix.iso 65536 > /mnt/master/KNOPPIX/KNOPPIX |
20 |
|
21 |
# Clean up a bit. |
22 |
#rm -rf /mnt/source/* |
23 |
rm -rf /mnt/master/knoppix.iso |
24 |
|
25 |
# Make the final .iso image. |
26 |
mkisofs -l -r -J -V "knoppix-debian-med" -hide-rr-moved -v -b KNOPPIX/boot-en.img -c KNOPPIX/boot.cat -o /mnt/source/knoppix_cd.iso /mnt/master |