Subject: | |
From: | |
Reply To: | |
Date: | Thu, 12 Feb 2009 17:13:37 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Excellent! Thank you very much Akemi. I was browsing through the spec file
and encountered all those sections that you wrote up in the wiki. I did not
wish to dig through all those details to figure out how to spec file works.
Your recipe is exactly what I need! Thanks!
A short followup: You have a warning at the beginning of the wiki that it
is almost not necessary to build a custom kernel. My problem is that I need
a kernel that's able to mount a squashfs fs on a loop device during boot-up.
The standard kernel has both squashfs and loop as .ko. I believe I need
them built-in. If I'm wrong, please advise.
Thanks again!
Ken
Akemi Yagi wrote:
> On Thu, Feb 12, 2009 at 2:27 PM, Ken Teh <[log in to unmask]> wrote:
>> A simple question: I'd like to rebuild the current kernel rpm with minor
>> mods to the config. The procedure I'm following is what's documented for
>> RHEL 4, that is,
>>
>> install the src.rpm
>> do an rpmbuild -bp
>> cd to /usr/src/redhat/BUILD/kernel-<vers>/linux-<vers>/
>> make menuconfig
>>
>> to create the custom .config. At this point, how do I fold the .config that
>> I generate back in so I can simply say 'rpmbuild -ba' and have it generate
>> the kernel rpms with my mods?
>
> There is a well-written CentOS wiki on how to build custom kernels.
> The instructions are based on CentOS-5 but there are notes whenever
> the procedures differ for CentOS-4.
>
> One important thing is that you do not want to do the building as
> root. This is a dangerous practice even if you are an experienced
> user (mistakes can happen).
>
> Akemi
|
|
|