<span id="_upro_mika@grml.org"></span><div><span class="gmail_quote">On 10/27/06, <b class="gmail_sendername">Michael Prokop</b> <<a href="mailto:mika@grml.org">mika@grml.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* Juergen Fiedler <<a href="mailto:juergen.fiedler@gmail.com">juergen.fiedler@gmail.com</a>> [20061027 21:37]:<br><br>>  I think I got the basics of remastering grml down OK: I copy the contents of<br>>  the squashfs to a writable folder, chroot into it, do whatever I have to do,
<br>>  leave, recompress the image copy it back and rebuild the ISO image. Works<br>>  well enough.<br><br>>  But: The resulting ISO image turns out much bigger than I anticipated. For<br>>  example, I added a package that takes up about 
1.5M on disk, but it<br>>  increased the size of the ISO by about 14M. I mad sure to call 'apt-get<br>>  clean' before leaving the chroot and to verify that /var/tmp and /root were<br>>  empty and yet, there is space wasted that I can't account for.
<br><br>>  Can anyone give me any pointers as to what I can do to make sure that I<br>>  don't add unnecessary ballast to my remastered ISO?<br><br>That's the magical part of remastering. You have to make sure to<br>
clean up all files which have been changed during remastering which<br>are not relevant.<br><br>Hint: take a look at /var/lib/dpkg/ and /var/lib/apt/lists/</blockquote><div><br><br>I took a long, hard look and right now, I am doing the following in the chroot:
<br><br>-----------------------<br>apt-get clean<br>
find /var/lib/apt/lists/ -type f|xargs rm -f<br>
find /var/lib/dpkg/info/ -type f|xargs rm -f<br>
rm -f /var/lib/dpkg/*-old<br>
-----------------------<br><br>At one point, I had taken all of /var/lib/dpkg/info/* out, but it _is_ nice to still be able to do a 'dpk -l' or some such thing. Anyway: with the above procedure, I am back at a point where the whole ISO will fit on the CD. I suppose I could prune /var/lib/dpkg/info/ some more, but I'll do that when I need the additional space.
<br><br>Thank you very much!<br> -Juergen<br></div></div>