On Tue, Oct 28, 2003 at 03:38:42PM -0800, Dejan Nikic wrote:
> well the thing is that you don't want to remove gcc, only portage some
> unused libs (i doubt their any with default Gentoo install) and probably
> all those man and doc files.  There should be ways to statically link
> everything, but that might be some work.
> 
> I got a 200mb install now, that I will hackaway at and try to get it
> bellow 50mb hopefully I'm thinking of maybe writing something that will
> use an existing gentoo install and use gentoo's portage and stuff to build
> an LFS-like (Linux from scratch) image.
> 

Turns out I had a lot of extra time at work today... ;-)
well here is submerge.  It is about 150 lines of bash and nothing very special.
submerge takes a couple of configuration parameters in a file to run.

I've attached it plus a sample config file.  There are a couple extra
features I have in mind for it... and I'm open to suggestions and code
;-)

like I said before, a basic system can be done with:

sys-kernel/linux-headers
glibc
=busybox-0.60.5-r1
=gawk-3.1.2-r3
=baselayout-1.8.6.8-r1
tinylogin

Dave

Attachment: submerge.sh
Description: Bourne shell script

ROOT_DIR=/tmp/rootme
MOUNT_DIR=/mnt/root_fs
FS_NAME=/tmp/root_fs
FS_TYPE=ext3
STRIP="/bin /sbin /usr/sbin /usr/lib /lib"
E_OPTS="--nodeps -q -k"

GCC_CONFIG="/usr/bin/gcc-config"

export USE="+static"
export LINKS="yes"


--
[EMAIL PROTECTED] mailing list

Reply via email to