Kernel build tree -- how to trim down

Paul Howarth paul at
Sun Apr 9 15:28:41 UTC 2006

On Sun, 2006-04-09 at 16:41 +0200, Mostafa Afgani wrote:
> On 4/9/06, Paul Howarth <paul at> wrote:
> > Build your own kernel RPM packages, then you'll get the same structure
> > and ease of installation/removal etc.
> >
> >
> Thanks for the link. Excellent howto; but you might want to add the
> following line to the
> "Reconfigure the kernel" section:
>   $ cp .config ~/rpmbuild/SOURCES/kernel-2.6.16-$(arch).config

The third step does this, with the addition of a comment line at the top
of the file that's needed for the rpm build to work:

(echo "# $(uname -i)"; cat .config) >

> Also, I think the kernel generated will still not be successful in
> fooling yum since it is generated as 2.6.16-1.2080_FC5.$(whoami) as
> opposed to 2.6.16-1.2080_FC5.
> I've editied the spec file to remove the $(whoami) bit - hope it will
> now generate a kernel that looks identical to the stock FC5 one.

I didn't want to do that because I thought a tweaked kernel *should*
have a different name from the stock one. I know the kernel maintainers
get very upset at bugzilla reports about tweaked kernels that purport to
be stock kernels.

Is there some problem that needs the kernel to look exactly like the
stock one for yum?


More information about the users mailing list