Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Binary and "Stage4" builder (gentoo-builder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
jeb-c4
n00b
n00b


Joined: 27 Jul 2002
Posts: 35

PostPosted: Tue Sep 23, 2003 8:47 pm    Post subject: Gentoo Binary and "Stage4" builder (gentoo-builder Reply with quote

I finally wrote all my scripts to make a compile box.

They are at http://jeb.c4solutions.net/gentoo/gentoo-builder/

You can view the scripts there, or download the tbz2 of them.

Uncompress them into your new build dir (mkdir gentoo-builder; cd gentoo-builder; tar xvjf gentoo-builder-scripts-DATE.tbz2)

Read the README (edit make.conf and config if you need to)

Download a stage1 (or whatever stage you want) to that dir.

./login-chroot stage1 (this will mount bind everything and uncompress the tbz2).

You are now chroot'd and can emerge sync, emerge package etc.

Type exit to get out of the chroot (everything will be unmounted).

./menu is a frontend to the bin/ dir and lets you tar up a stage4 or packages and portage.

menu also lets you master a bootable gentoo iso with either the stage4 or packages/portage.

To build isos, mkdir -p isofs, and copy over everything from a gentoo bootable cd. (mkdir -p temp; mount -o loop gentoo.iso; cp -a temp/* isofs/; umount temp; rm -rf temp)

The isofs/stages/ dir gets wiped on every build-iso.

More to come later tonight.
Gotta run.

Jeb Campbell
jebc@c4solutions.net
Back to top
View user's profile Send private message
philocipher
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 79
Location: Deep Space

PostPosted: Tue Sep 23, 2003 11:40 pm    Post subject: Reply with quote

sounds sweet man, i assume you are basically in the same enviroment you would get after you chrooted from the livecd and can then set up the whole system and burn to cd?
_________________
Nine megs for the secretaries fair
Seven megs for the hackers scarce
Five megs for the grads in smoky lairs
Three megs for system source

One disk to rule them all
One disk to bind them
One disk to hold the files
And in the darkness grind 'em
Back to top
View user's profile Send private message
jeb-c4
n00b
n00b


Joined: 27 Jul 2002
Posts: 35

PostPosted: Wed Sep 24, 2003 12:32 am    Post subject: More info Reply with quote

Yes, this is an extension of booting a livecd and chrooting. But it has some interesting benefits:

1. One machine can build with as many combinations of CPU, CFLAGS, and USE flags as there is disk space. You can easily maintain builds for servers, desktops, and thin clients.

2. The distfiles are shared (mount -o bind) amoung all builds.

3. You can easily (really it is simple) make a bootable cd with either a live "stage4" (including your startup scripts), or a bootable cd with binary packages, the portage used to make them, and a stage1.

4. It uses a modified dialogcd (http://dialogcd.sourceforge.net), which is a console ncurses (dialog) burning program, so can handle everything from making the packages, to making an iso, and even burning it.

For the future, I'm looking for ways to "brand" a stage4 live fs. By this I mean, you might have a brands/gateway/files/ that has things like authorized ssh keys, ip config, firewall settings, etc. -- ready to be copied over. Basically everything that you would do to config a server or desktop. This would let us keep a build for servers or desktops, and if we need to bring a new one up, it would only take the time to boot a cd, decompress the tbz2, and copy some brand files over.

Any thoughts on the best way to do this would be greatly appreciated.

Oh, I left one thing out -- the cleanpackages script -- I will post that later and update the tbz2 on my site.
Back to top
View user's profile Send private message
jeb-c4
n00b
n00b


Joined: 27 Jul 2002
Posts: 35

PostPosted: Wed Sep 24, 2003 12:45 am    Post subject: More info Reply with quote

Yes, this is an extension of booting a livecd and chrooting. But it has some interesting benefits:

1. One machine can build with as many combinations of CPU, CFLAGS, and USE flags as there is disk space. You can easily maintain builds for servers, desktops, and thin clients.

2. The distfiles are shared (mount -o bind) amoung all builds.

3. You can easily (really it is simple) make a bootable cd with either a live "stage4" (including your startup scripts), or a bootable cd with binary packages, the portage used to make them, and a stage1.

4. It uses a modified dialogcd (http://dialogcd.sourceforge.net), which is a console ncurses (dialog) burning program, so can handle everything from making the packages, to making an iso, and even burning it.

For the future, I'm looking for ways to "brand" a stage4 live fs. By this I mean, you might have a brands/gateway/files/ that has things like authorized ssh keys, ip config, firewall settings, etc. -- ready to be copied over. Basically everything that you would do to config a server or desktop. This would let us keep a build for servers or desktops, and if we need to bring a new one up, it would only take the time to boot a cd, decompress the tbz2, and copy some brand files over.

Any thoughts on the best way to do this would be greatly appreciated.

Oh, I left one thing out -- the cleanpackages script -- I will post that later and update the tbz2 on my site.
Back to top
View user's profile Send private message
philocipher
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 79
Location: Deep Space

PostPosted: Wed Sep 24, 2003 4:45 pm    Post subject: Reply with quote

great, now all i need is that huge G5 cluster running gentoo so i can pre-compile stuff for my i386 :)
_________________
Nine megs for the secretaries fair
Seven megs for the hackers scarce
Five megs for the grads in smoky lairs
Three megs for system source

One disk to rule them all
One disk to bind them
One disk to hold the files
And in the darkness grind 'em
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum