[WBEL-users] Building custom kernel,
how do I change the EXTRAVERSION
Karanbir Singh
mail-lists at karan.org
Wed Jan 25 18:01:43 CST 2006
Edwards, Scott (GE Healthcare) wrote:
> Hello,
>
> I downloaded the latest kernel source rpm from RedHat and I built a custom kernel to use with WhiteBox. However, it sets the EXTRAVERSION to my username, which is not what I want. I need to put specific text in to identify it as one of our custom kernels. Can anybody tell me where this is done when doing a rpmbuild? I have looked through all the RedHat patches and I can't find anything in there. I have Googled around and I can't find where it is done. Any help would be most appreciated.
>
grab the .src.rpm for the kernel you want to build
install it ( to check where it goes do this : rpm --eval "%_topdir" )
change into the SPECS dir, and with your fav editor open the
kernel-x.x.spec file, scroll down a bit and you can see the portion with
a note from the kernel maintainers at Redhat about the extraversion,
handle that / change that to whatever you might want it to be.
save spec file and exit
rpmbuild -ba <name of specfile> --target <arch>
and you are done ( depending on your machine capability it might be a
while before its done )
btw, as a side note : why dont you want the extaversion ? its a good
idea to have some indication of when / where / how the kernel was built
( if nothing else, for later audit purposes )
--
Karanbir Singh : http://www.karan.org/ : 2522219 at icq
More information about the Whitebox-users
mailing list