[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Remastering LiveCDs - how to keep unnecessary data out



On Fri, Feb 09, 2007 at 11:30:59AM -0500, Juergen Fiedler wrote:
> On Fri, Feb 09, 2007 at 02:11:57AM +0000, ][ wrote:
> > On Thu, 08 Feb 2007 15:15:49 -0500, Juergen Fiedler wrote:
> > > what other files and directories can I leave out of the squashfs to
> > > make the whole thing a bit smaller?
> > 
> > >From my personal archive:
> > 
> > A 'clean-up' script called 'remaster-clean' will be included with this
> [...]
> > retrieved from 
> > http://www.knoppix.net/wiki/Remaster_From_Hd_Install_HowTo
> > less than a year ago. 
> > 
> > check out the rest there. 
> 
> Eep. Even after running the cleanup script, the process of doing an
> apt-get update and reinstalling one package increases the size of the
> squashfs from 685M to 1.1G. It seems like all it does in terms of
> cleaning up after apt/dpkg is to call 'apt-get clean' which apparently
> only removes .deb files from /var/cache/apt/archives - the
> meta-information sticks around, and that is quite huge in Debian.
> The cleanup script does provide a nifty tool to build upon, though!

Public service announcement: Unmounting /proc in your chroot before
you squash it is probably one of the more useful ways of keeping it
small.

 --j
  (who doesn't feel overly smart right now)

Attachment: signature.asc
Description: Digital signature


Reply to: