Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks luigi
admin lewis wrote on 03/26/2012 05:45 PM:
Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks
That seems too good to be true, so it probably is. :)
Have a look at http://wiki.centos.org/HowTos/Custom_Kernel
Or perhaps http://elrepo.org/tiki/kernel-ml
Someone else may already have done the heavy lifting.
Phil
On 03/26/2012 04:45 PM, admin lewis wrote:
Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks luigi
What are you trying to accomplish.
If you install the SRPM, the go the the SPEC directory, you can run the command:
rpmbuild -bp kernel.spec
Then you can go to the BUILD/<version>/ directory, copy the config file you want to modify there, and run the command:
make menuconfig
Then you can change whatever settings you want and go from there.
Here is how to build a custom kernel:
http://wiki.centos.org/HowTos/Custom_Kernel
The real question is ... what are you trying to accomplish?
2012/3/27 Johnny Hughes johnny@centos.org:
On 03/26/2012 04:45 PM, admin lewis wrote:
Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks luigi
What are you trying to accomplish.
Simply I want enable grsecurity. I downloaded vanilla kernel and grsecurity patch but I dont want reconfigure every kernel options.. because it's too long read and understand every feature of the kernel. Also I want disable all modules I dont need. Finally I dont want initrd. Thanks very much for any help luigi
On 03/27/2012 05:48 AM, admin lewis wrote:
2012/3/27 Johnny Hughesjohnny@centos.org:
On 03/26/2012 04:45 PM, admin lewis wrote:
Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks luigi
What are you trying to accomplish.
Simply I want enable grsecurity. I downloaded vanilla kernel and grsecurity patch but I dont want reconfigure every kernel options.. because it's too long read and understand every feature of the kernel. Also I want disable all modules I dont need. Finally I dont want initrd. Thanks very much for any help luigi
I actually asked this question on the kernel mailing list and someone pointed me to a tool that would look at you current running system an generate a config file. Only problem is if there are features you may want in the future that are modules and aren't loaded currently, they don't get configured.
This was a year or so ago and I don't remember the tool's name though.
On Tue, Mar 27, 2012 at 2:48 AM, admin lewis adminlewis@gmail.com wrote:
2012/3/27 Johnny Hughes johnny@centos.org:
On 03/26/2012 04:45 PM, admin lewis wrote:
Anyone know if there is a kernel autoconfigure tool to compile from source ? thanks luigi
What are you trying to accomplish.
Simply I want enable grsecurity. I downloaded vanilla kernel and grsecurity patch but I dont want reconfigure every kernel options.. because it's too long read and understand every feature of the kernel. Also I want disable all modules I dont need. Finally I dont want initrd.
If your goal is to build a vanilla kernel that runs on CentOS, look at kernel-ml as suggested by Phil:
http://elrepo.org/tiki/kernel-ml
Yes, someone (Alan Bartlett) did the heavy lifting to elaborate the config file for both el5 and el6. You should be able to modify it to accommodate your needs fairly easily.
Akemi