On 6/6/12 9:21 PM, Bruce Dubbs wrote: > Jeremy Huntwork wrote: > >> (Major tangent now) My main motive for wanting to keep a very >> lightweight base system isn't so much size on disk as image size (a >> complete base system image). This is a somewhat important consideration >> if you want to be easily transferring / duplicating / manipulating >> virtual machines. > > Well you could always 'rm -rf /usr/share' > > and of course 'rm /usr/lib/*.a'
Yes, removing docs and other extra files is good. As well as packaging link-time files separately (headers, static libs), compiling with -Os, stripping all binaries and libs, using a smaller libc (like http://www.etalabs.net/musl/) and other smaller utilities (like busybox or toybox). I'm doing most of those already: https://github.com/jhuntwork/LightCube-OS and https://github.com/jhuntwork/lightcube-bootstrap-musl JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page