Re: Remastering LiveCDs - how to keep unnecessary data out

2007-02-09 Thread Juergen Fiedler
On Fri, Feb 09, 2007 at 02:11:57AM +, ][ 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!

Thanks,
 --j


signature.asc
Description: Digital signature


Re: Remastering LiveCDs - how to keep unnecessary data out

2007-02-09 Thread Juergen Fiedler
On Fri, Feb 09, 2007 at 11:30:59AM -0500, Juergen Fiedler wrote:
 On Fri, Feb 09, 2007 at 02:11:57AM +, ][ 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)


signature.asc
Description: Digital signature


Re: Remastering LiveCDs - how to keep unnecessary data out

2007-02-08 Thread ][
On Thu, 08 Feb 2007 15:15:49 -0500, Juergen Fiedler wrote:

 I would like to remaster a Debian based live CD (grml - www.grml.org,
 in this case) by copying the system from the squashfs image, chrooting
 to it, making the necessary modifications and squashing the resulting
 system back up. 
 It works nicely enough [...]

grml, yeah, good choice. 

 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
how-to. It is based on the original script by Klaus Knopper but
modifications by several users have been incorporated as well as comments to
help the neophyte understand what it is doing. It does not restore all
config files to default values nor does it remove /home/knoppix. I have set
it up this way because it leaves the HD install which I am using as a source
intact after making the remaster.

WARNING: This script has been successfully tested but as usual there are no
guarantees it will work on your system. It should give slightly smaller file
size than the basic cleanup outlined above since it removed expanded manpage
files, etc. but be prepared for possible problems.

retrieved from 
http://www.knoppix.net/wiki/Remaster_From_Hd_Install_HowTo
less than a year ago. 

check out the rest there. 

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sf.net/techdocs/
  http://xpt.sf.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]