View previous topic :: View next topic |
Author |
Message |
FastTurtle Guru
Joined: 03 Sep 2002 Posts: 475 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Fri Apr 12, 2013 4:04 am Post subject: Need Help Creating a Stipped Base Layout |
|
|
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 |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri Apr 12, 2013 5:10 am Post subject: |
|
|
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.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Apr 12, 2013 10:11 am Post subject: |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Apr 13, 2013 5:30 pm Post subject: |
|
|
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 |
|
|
|