Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need Help Creating a Stipped Base Layout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 390
Location: Shake & Bake

PostPosted: Fri Apr 12, 2013 4:04 am    Post subject: Need Help Creating a Stipped Base Layout Reply with quote

My goal is to create a base layout that's stripped to the bones - all I need is enough to get the system to boot - single user mode is fine. This means tar, fdisk, portage, pam, shadow utils and the toolchain. I'll add things like the kernel, networking and file system tools along with nano. Just enough to boot into a working system that allows me to build the rest of it.

Anyone got a link to a how-to/guide for this or input on what I'm looking for?
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1393

PostPosted: Fri Apr 12, 2013 5:10 am    Post subject: Reply with quote

I believe its called a "Stage3 tarball". I also note that you list pam as "essential" but it isn't. Linux works just fine without it (currently not installed on any of my boxes). You can save some space by replacing udev with mdev and bash with busybox (this may break things), but more generally I think John R. Graham and others answed this in another thread.

Bottom line: portage is python and ruby so you are necessarily pulling all of those packages including GCC. The stage3 doesn't even have a cron or system logger. It boots, but not much else. It doesn't even have proper networking support. OpenRC includes some limited ability, but it does not include dhcpcd or anything. It does include the tools for sys-fs/e2fsprogs, but openRC really does check file systems on startup, so its not exactly optional.

The question becomes, what exactly are you trying to do? Wouldn't it make more sense to use emerge -c to remove the 1 or 2 packages you don't actually need rather than build a custom one?
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4150

PostPosted: Fri Apr 12, 2013 10:11 am    Post subject: Reply with quote

FastTurtle, you are just seeking wrong feature.

What you want is just a profile. Something you could create easy with cp & nano.
Profile is what define what "default" tools will be installed and default use flag...
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2280
Location: UK

PostPosted: Sat Apr 13, 2013 5:30 pm    Post subject: Reply with quote

The Doctor wrote:
Bottom line: portage is python and ruby so you are necessarily pulling all of those packages

While most of the basic functionality other PMs provide built-in requires ruby tools with portage, portage itself does not need ruby installed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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