Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 34950

Summary: ability to change/add .config files and genkernel.conf from ebuilds, sources ebuilds or otherwise.
Product: Gentoo Hosted Projects Reporter: Aaron Peterson <alpeterson>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED CANTFIX    
Severity: enhancement CC: drobbins, flash3001, livewire, x86-kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aaron Peterson 2003-12-02 21:08:11 UTC
People are task driven, 
people should be able to choose 
NAT router 
  with dhcpd 
  a firewall 
  and a nameserver 
 
(my terminology is probably incorrect) 
 
It would also be really nice to use the data from the live-cd's hardware 
detection to reduce the number of modules genkernel compiles. 
 
It would basically be nice to redo the menuconfig to make it user friendly 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brad House 2004-01-18 07:43:46 UTC
whoa slow down there buddy.
you do realize menuconfig comes from the kernel directly,
correct?  Not from genkernel! 
There's never going to be an instance where it will be
possible for genkernel to autodetect hardware and select
just those drivers.  That would be nearly impossible.
If you think otherwise, you code it. But it's not going
to happen.

It's possible that we may be able to provide other default
configs at some point, optimized for different things, but
that's about it.
Comment 2 Aaron Peterson 2004-01-19 05:28:59 UTC
what does menuconfig have to do with this?

I'm talking about having kenrel settings like:

kitchen_sink  which would take forever to compile, but include everything under the sun.

Then there would be amd_laptop kernel .config

and maybe pentium_laptop kernel .config


I'm talking about including .config files for common systems, preconfigured with genkernel.

I am so sick of having to manually configure my kernel... I don't know what half the stuff is... and I read the descriptions!

And even if I do know what it is, it's easy to get things confused.


This does not change menuconfig in anyway.

This would just copy a nice sane kernel config (depending on architecuture and whatnot...  ) as the base to start with.

The user would still be expected to use menuconfig or edit the file (I don't know which becauxe genkernel does a make mrproper deleting the .config file from the directory!!!!)

Comment 3 Aaron Peterson 2004-01-19 05:54:39 UTC
Sorry, I'm   not all together.

Yes, I hope to write something like this.

lspci  and kudzu  (or whatever the redhat hardware detection system that knoppix uses) could be a major friend for this...


Again, If this is beond the scope of genkernel, something like it needs to be made, and please assign the bug to me.  I know I'm not a developer, but I'm very interested in this functionality and want to help.


Comment 4 Aaron Peterson 2004-01-19 05:55:36 UTC
Sorry, I'm   not all together.

Yes, I hope to write something like this.

lspci  and kudzu  (or whatever the redhat hardware detection system that knoppix uses) could be a major friend for this...


Again, If this is beond the scope of genkernel, something like it needs to be made, and please assign the bug to me.  I know I'm not a developer, but I'm very interested in this functionality and want to help.


Comment 5 Brad House 2004-01-19 06:55:13 UTC
uhh, I hope you realize it's a lot easier to use hotplug, etc
on bootup, to just load the modules you need, than to actually
build a kernel based off what is detected in the system.
RedHat et al provide a kernel with a crapload of modules and
only load the ones it needs, which is what genkernel is supposed
to do.  The only thing what you want to do would save you is
compile time, nothing else.

Also, what I was referring to on menuconfig was this statement
from you:
"It would basically be nice to redo the menuconfig to make
it user friendly"

Menuconfig is what the kernel provides, we're definately not
going to recreate the kernel build environment!!!!!!

Closing again, do not reopen.  If you actually have any valid
points create a new bug.
Comment 6 Aaron Peterson 2004-01-20 04:43:30 UTC
It's NOT assigned to you!!!!

If this is supposed to go to the kernel maintainers, then pass it on to them.  THe problem is vissible in genkernel though.

I'm looking into it.
Gentoo just takes so much time to twiddle with, and I have to get a working kernel to continue using it before I get anything better out of this.

and 38584 is a duplicate of this bug.


The config file should by default at least contain the stuff needed by gentoo... like devfs or whatnot.

and have either basically everything enabled as a module that is considered safe... and have that important readme doc sited in genkernel to tell how to set up initrd

or have a script using hotplug or whatever that narrows down the stuff a bit...

and or a script to at least ask what architecture the person is using, and choose all moderately common possible modules that apply to that system, while leaving off the stuff that doesn't apply.

This is a step way before menuconfig.

and or after menuconfig to make sure that gentoo's requirements are included.


One person might have selected .config files for specific purposes, and this might be a package in portage called:  bobs-athlon-xp-router-kernel-config or whatnot.

Comment 7 Aaron Peterson 2004-02-11 23:38:53 UTC
I just learned that this can be called roll based configuration.

There is a glep that is referenced in a gentoo weekly news letter about meta ebuilds for services.

This goes hand in hand with that.

Ultimately a user should be able to do: emerge paranoid_firewall or something similar and, if we can, we could have it check the kernel configuaration and remake the kernel with the neccissary modules... or just add those modules without recompiling everything  (do a make modules again, and make modules_install)

Comment 8 Aaron Peterson 2004-03-16 03:08:43 UTC
Thinking about this some more...

I'm envisioning a bunch of ebuilds that contains .config files and optionally use a hardware detection system to tune it's respective .config file...

and use genkernel to build and install the program...

changing summary to match revised envisioning...   this is probably also a portage abstract though topic as well.. I'm questioning where this functionality burden would be placed.
Comment 9 Daniel Black (RETIRED) gentoo-dev 2004-10-02 07:15:56 UTC
Assigned to non-devs - reassigning so these may be noticed. 
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2004-10-02 10:29:44 UTC
I'm closing this as CANTFIX. Patches or more detailed requests welcome - if so, please reopen this bug.